gochain/web3

feature: Add gas-price flags to contract call command

Closed this issue · 9 comments

Is there a function to define the gasPrice in Gwei - not using the Gas-Price that the chain respone?

Many commands support gas-price and/or gas-price-gwei. Use --help for more info on the command.

OK but in the call contract function Not?

b:/home/ubuntu/web3_2# ./web3_linux gas-price
No help topic for 'gas-price'
/home/ubuntu/web3_2# ./web3_linux gas-price-gwei
No help topic for 'gas-price-gwei'

The commands exits but they have no function.... not only in contracts

image

Looks like you're right on the contract call command. Updating the name of this issue for that.

Yes but on the other command the output is:

ERROR: flag provided but not defined: -gas-price

Add in main.go at line 463 under the gas-limit block

cli.StringFlag{
Name: "gas-price",
Usage: "Gas price to use, if left blank, will use suggested gas price.",
},
cli.StringFlag{
Name: "gas-price-gwei",
Usage: "Gas price to use in GWEI, if left blank, will use suggested gas price.",

then the gas-price could get set in contracts ;)

Pull request? 🙂

Closes via #177