File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments