Skip to content

Commit 11cb986

Browse files
committed
chore: cleanup get_account impl
1 parent a61c323 commit 11cb986

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/chain_client/1_MsgSend.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def main() -> None:
3636
priv_key = PrivateKey.from_hex("f9db9bf330e23cb7839039e944adef6e9df447b90b503d5b4464c90bea9022f3")
3737
pub_key = priv_key.to_public_key()
3838
address = pub_key.to_address()
39-
account = await client.get_account("inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r")
39+
account = await client.get_account(address.to_acc_bech32())
4040

4141
# prepare tx msg
4242
msg = composer.MsgSend(
@@ -50,8 +50,8 @@ async def main() -> None:
5050
tx = (
5151
Transaction()
5252
.with_messages(msg)
53-
.with_sequence(address.get_sequence())
54-
.with_account_num(address.get_number())
53+
.with_sequence(client.get_sequence())
54+
.with_account_num(client.get_number())
5555
.with_chain_id(network.chain_id)
5656
)
5757
sim_sign_doc = tx.get_sign_doc(pub_key)

0 commit comments

Comments
 (0)