From db0240018d973ef4b96e8a58dc2fbb7f52f9abdf Mon Sep 17 00:00:00 2001 From: Daniel Savu <23065004+daniel-savu@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:46:58 +0000 Subject: [PATCH] chore: use get_balance instead of get_account for sealevel --- rust/chains/hyperlane-sealevel/src/provider.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/chains/hyperlane-sealevel/src/provider.rs b/rust/chains/hyperlane-sealevel/src/provider.rs index 9baee47cc6..91908f9168 100644 --- a/rust/chains/hyperlane-sealevel/src/provider.rs +++ b/rust/chains/hyperlane-sealevel/src/provider.rs @@ -38,10 +38,10 @@ impl SealevelProvider { let pubkey = Pubkey::from_str(&address).map_err(Into::::into)?; let balance = self .rpc_client - .get_account(&pubkey) + .get_balance(&pubkey) .await .map_err(Into::::into)?; - Ok(balance.lamports.into()) + Ok(balance.into()) } } @@ -73,7 +73,7 @@ impl HyperlaneProvider for SealevelProvider { Ok(true) } - async fn get_balance(&self, _address: String) -> ChainResult { - todo!() // FIXME + async fn get_balance(&self, address: String) -> ChainResult { + self.get_balance(address).await } }