mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-27 06:57:56 +00:00
Fix MaxLockers (#248)
* Fix MaxLockers * fix constants * fix toolchains --------- Co-authored-by: Özgün Özerk <ozgunozerk.elo@gmail.com>
This commit is contained in:
@@ -5,11 +5,16 @@ use serde::Deserialize;
|
||||
#[serde(tag = "type")]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum AbiItem {
|
||||
#[allow(dead_code)]
|
||||
Error(Error),
|
||||
#[allow(dead_code)]
|
||||
Function(Function),
|
||||
Constructor,
|
||||
#[allow(dead_code)]
|
||||
Event(Event),
|
||||
#[allow(dead_code)]
|
||||
Receive(Receive),
|
||||
#[allow(dead_code)]
|
||||
Default(Function),
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ use super::{abi::AbiItem, deserialize_bytecode};
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct ForgeContract {
|
||||
#[allow(dead_code)]
|
||||
pub abi: Vec<AbiItem>,
|
||||
pub bytecode: ForgeBytecode,
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ use super::{abi::AbiItem, deserialize_bytecode};
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct HardhatContract {
|
||||
#[allow(dead_code)]
|
||||
pub abi: Vec<AbiItem>,
|
||||
#[serde(deserialize_with = "deserialize_bytecode")]
|
||||
pub bytecode: Vec<u8>,
|
||||
|
||||
@@ -43,7 +43,9 @@ impl Contract {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ContractParsingError {
|
||||
#[allow(dead_code)]
|
||||
MetadataReadError(io::Error),
|
||||
#[allow(dead_code)]
|
||||
MetadataParseError(serde_json::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user