From bc6b05a790cac8499b32d51aef33125ff0365ca5 Mon Sep 17 00:00:00 2001 From: Dmitrii Novikov Date: Wed, 4 Dec 2024 14:21:40 +0400 Subject: [PATCH] impl mirror balance top up api --- ethexe/ethereum/src/mirror/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ethexe/ethereum/src/mirror/mod.rs b/ethexe/ethereum/src/mirror/mod.rs index 366f37dc31f..41d78d95334 100644 --- a/ethexe/ethereum/src/mirror/mod.rs +++ b/ethexe/ethereum/src/mirror/mod.rs @@ -53,6 +53,13 @@ impl Mirror { )) } + pub async fn executable_balance_top_up(&self, value: u128) -> Result { + 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]>,