mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-28 13:07:58 +00:00
Test balance deserialization
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
{
|
||||
"name": "first",
|
||||
"inputs": [
|
||||
{
|
||||
"address": "0xdeadbeef00000000000000000000000000000042",
|
||||
"expected_balance": "1233"
|
||||
},
|
||||
{
|
||||
"instance": "WBTC_1",
|
||||
"method": "#deployer",
|
||||
|
||||
@@ -527,7 +527,7 @@ where
|
||||
&mut self,
|
||||
BalanceAssertion {
|
||||
address: address_string,
|
||||
amount,
|
||||
expected_balance: amount,
|
||||
}: &BalanceAssertion,
|
||||
node: &T::Blockchain,
|
||||
) -> anyhow::Result<()> {
|
||||
|
||||
@@ -57,7 +57,7 @@ pub struct BalanceAssertion {
|
||||
pub address: String,
|
||||
|
||||
/// 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)]
|
||||
|
||||
Reference in New Issue
Block a user