mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Smash out the router library
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user