Skip to content

Commit f675e2a

Browse files
committed
fix: fix broadcaster creation example scripts
1 parent 45b98d2 commit f675e2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/chain_client/5_MessageBroadcasterWithoutSimulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def main() -> None:
2727
# adjust gas price to make it valid even if it changes between the time it is requested and the TX is broadcasted
2828
gas_price = int(gas_price * 1.1)
2929

30-
message_broadcaster = MsgBroadcasterWithPk.new_using_simulation(
30+
message_broadcaster = MsgBroadcasterWithPk.new_without_simulation(
3131
network=network,
3232
private_key=private_key_in_hexa,
3333
gas_price=gas_price,

examples/chain_client/6_MessageBroadcasterWithGranteeAccountWithoutSimulation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ async def main() -> None:
3333
# adjust gas price to make it valid even if it changes between the time it is requested and the TX is broadcasted
3434
gas_price = int(gas_price * 1.1)
3535

36-
message_broadcaster = MsgBroadcasterWithPk.new_using_simulation(
36+
message_broadcaster = MsgBroadcasterWithPk.new_for_grantee_account_without_simulation(
3737
network=network,
38-
private_key=private_key_in_hexa,
38+
grantee_private_key=private_key_in_hexa,
3939
gas_price=gas_price,
4040
client=client,
4141
composer=composer,

0 commit comments

Comments
 (0)