mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-15 20:41:04 +00:00
Test balance deserialization
This commit is contained in:
@@ -8,6 +8,10 @@
|
|||||||
{
|
{
|
||||||
"name": "first",
|
"name": "first",
|
||||||
"inputs": [
|
"inputs": [
|
||||||
|
{
|
||||||
|
"address": "0xdeadbeef00000000000000000000000000000042",
|
||||||
|
"expected_balance": "1233"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"instance": "WBTC_1",
|
"instance": "WBTC_1",
|
||||||
"method": "#deployer",
|
"method": "#deployer",
|
||||||
|
|||||||
@@ -527,7 +527,7 @@ where
|
|||||||
&mut self,
|
&mut self,
|
||||||
BalanceAssertion {
|
BalanceAssertion {
|
||||||
address: address_string,
|
address: address_string,
|
||||||
amount,
|
expected_balance: amount,
|
||||||
}: &BalanceAssertion,
|
}: &BalanceAssertion,
|
||||||
node: &T::Blockchain,
|
node: &T::Blockchain,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ pub struct BalanceAssertion {
|
|||||||
pub address: String,
|
pub address: String,
|
||||||
|
|
||||||
/// The amount of balance to assert that the account or contract has.
|
/// The amount of balance to assert that the account or contract has.
|
||||||
pub amount: U256,
|
pub expected_balance: U256,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
|
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
|
||||||
|
|||||||
Reference in New Issue
Block a user