Fix MaxLockers (#248)

* Fix MaxLockers

* fix constants

* fix toolchains

---------

Co-authored-by: Özgün Özerk <ozgunozerk.elo@gmail.com>
This commit is contained in:
Nikita Khateev
2024-07-23 16:24:52 +04:00
committed by GitHub
parent 02b6611ec2
commit 592c3b694d
15 changed files with 18 additions and 26 deletions
+5
View File
@@ -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),
}
+1
View File
@@ -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>,
+2
View File
@@ -43,7 +43,9 @@ impl Contract {
#[derive(Debug)]
pub enum ContractParsingError {
#[allow(dead_code)]
MetadataReadError(io::Error),
#[allow(dead_code)]
MetadataParseError(serde_json::Error),
}