Просмотр исходного кода

Move SMART_CONTRACT_ZKAS_DB_NAME constant to the wasm runtime module.

parazyd 3 лет назад
Родитель
Сommit
740ce9fa52
2 измененных файлов с 3 добавлено и 3 удалено
  1. 3 0
      src/runtime/vm_runtime.rs
  2. 0 3
      src/sdk/src/db.rs

+ 3 - 0
src/runtime/vm_runtime.rs

@@ -43,6 +43,9 @@ const MEMORY: &str = "memory";
 /// Gas limit for a contract
 /// Gas limit for a contract
 const GAS_LIMIT: u64 = 200000000;
 const GAS_LIMIT: u64 = 200000000;
 
 
+/// The hardcoded db name for the zkas circuits database tree
+const SMART_CONTRACT_ZKAS_DB_NAME: &str = "_zkas";
+
 #[derive(Clone, Copy, PartialEq)]
 #[derive(Clone, Copy, PartialEq)]
 pub enum ContractSection {
 pub enum ContractSection {
     /// Setup function of a contract
     /// Setup function of a contract

+ 0 - 3
src/sdk/src/db.rs

@@ -23,9 +23,6 @@ use super::{
     error::{ContractError, GenericResult},
     error::{ContractError, GenericResult},
 };
 };
 
 
-// This might not be the right place for this constant...
-pub const SMART_CONTRACT_ZKAS_DB_NAME: &str = "_zkas";
-
 pub type DbHandle = u32;
 pub type DbHandle = u32;
 
 
 pub const DB_SUCCESS: i32 = 0;
 pub const DB_SUCCESS: i32 = 0;