Skip to content

Commit

Permalink
impl mirror balance top up api
Browse files Browse the repository at this point in the history
  • Loading branch information
breathx committed Dec 4, 2024
1 parent 01ca38e commit bc6b05a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ethexe/ethereum/src/mirror/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ impl Mirror {
))
}

pub async fn executable_balance_top_up(&self, value: u128) -> Result<H256> {
let builder = self.0.executableBalanceTopUp(value);
let receipt = builder.send().await?.try_get_receipt().await?;

Ok((*receipt.transaction_hash).into())
}

pub async fn send_message(
&self,
payload: impl AsRef<[u8]>,
Expand Down

0 comments on commit bc6b05a

Please sign in to comment.