Skip to content

Commit

Permalink
fix test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Nov 13, 2024
1 parent d30a4b0 commit 96d0f87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/revive/rpc/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ async fn native_evm_ratio_works() -> anyhow::Result<()> {
.send_and_wait_for_receipt(&client)
.await?;

let contract_value = client.get_balance(ethan.address(), BlockTag::Latest.into()).await?;
let contract_value = client.get_balance(contract_address, BlockTag::Latest.into()).await?;
assert_eq!(contract_value, value.into());

let withdraw_value = 1_000_000_000_000_000_000u128; // 1 eth
Expand All @@ -314,7 +314,7 @@ async fn native_evm_ratio_works() -> anyhow::Result<()> {
.send_and_wait_for_receipt(&client)
.await?;

let contract_value = client.get_balance(ethan.address(), BlockTag::Latest.into()).await?;
let contract_value = client.get_balance(contract_address, BlockTag::Latest.into()).await?;
assert_eq!(contract_value, (value - withdraw_value).into());

Ok(())
Expand Down
4 changes: 2 additions & 2 deletions substrate/frame/revive/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ where
origin,
gas_meter,
storage_meter,
value,
value.into(),
debug_message,
)
.unwrap()
Expand All @@ -843,7 +843,7 @@ where

/// Create a new call stack.
///
/// Returns `None` when calling a non existant contract. This is not an error case
/// Returns `None` when calling a non existent contract. This is not an error case
/// since this will result in a value transfer.
fn new(
args: FrameArgs<T, E>,
Expand Down

0 comments on commit 96d0f87

Please sign in to comment.