mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-25 19:58:04 +00:00
* Added a possibility to predeploy contracts to the genesis block * Added some default contracts to predeploy.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
use super::{abi::AbiItem, deserialize_bytecode};
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct ForgeContract {
|
||||
pub abi: Vec<AbiItem>,
|
||||
pub bytecode: ForgeBytecode,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct ForgeBytecode {
|
||||
#[serde(deserialize_with = "deserialize_bytecode")]
|
||||
pub object: Vec<u8>,
|
||||
}
|
||||
Reference in New Issue
Block a user