Skip to content

Commit

Permalink
chore: use get_balance instead of get_account for sealevel
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed Dec 5, 2023
1 parent 76d2205 commit db02400
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/chains/hyperlane-sealevel/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ impl SealevelProvider {
let pubkey = Pubkey::from_str(&address).map_err(Into::<HyperlaneSealevelError>::into)?;
let balance = self
.rpc_client
.get_account(&pubkey)
.get_balance(&pubkey)
.await
.map_err(Into::<HyperlaneSealevelError>::into)?;
Ok(balance.lamports.into())
Ok(balance.into())
}
}

Expand Down Expand Up @@ -73,7 +73,7 @@ impl HyperlaneProvider for SealevelProvider {
Ok(true)
}

async fn get_balance(&self, _address: String) -> ChainResult<U256> {
todo!() // FIXME
async fn get_balance(&self, address: String) -> ChainResult<U256> {
self.get_balance(address).await
}
}

0 comments on commit db02400

Please sign in to comment.