Skip to content

Commit 32bb8f2

Browse files
committed
Add example of converting float to int to Readme
1 parent 6b5dac3 commit 32bb8f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ If you would like to pay fees in cUSD, set the gas price manually:
7878
stable_token = kit.base_wrapper.create_and_get_contract_by_name('StableToken')
7979
gas_price_contract = kit.base_wrapper.create_and_get_contract_by_name('GasPriceMinimum')
8080
gas_price_minimum = gas_price_contract.get_gas_price_minimum(stable_token.address)
81-
gas_price = gas_price_minimum * 1.3 # Wiggle room if gas price minimum changes before tx is sent
81+
gas_price = int(gas_price_minimum * 1.3) # Wiggle room if gas price minimum changes before tx is sent
8282
kit.wallet_fee_currency = stable_token.address # Default to paying fees in cUSD
8383
kit.wallet_gas_price = gas_price
8484

0 commit comments

Comments
 (0)