Smash out the router library

This commit is contained in:
Luke Parker
2024-09-17 01:04:08 -04:00
parent a7d5640642
commit cc75a92641
13 changed files with 749 additions and 445 deletions

View File

@@ -24,7 +24,7 @@ bitvec = { version = "1", default-features = false, features = ["alloc", "serde"
hex = "0.4"
scale = { package = "parity-scale-codec", version = "3" }
borsh = { version = "1" }
borsh = { version = "1", features = ["derive"] }
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }

View File

@@ -29,6 +29,13 @@ impl ContractDeployment {
}
Some(Self { gas, code })
}
pub fn gas(&self) -> u32 {
self.gas
}
pub fn code(&self) -> &[u8] {
&self.code
}
}
/// A representation of an Ethereum address.