Skip to content

Commit

Permalink
gasPrice fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siromivel committed Mar 29, 2021
1 parent e30825a commit ca422a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spankchain-dev/spankbank-web3",
"version": "0.1.5-rc1",
"version": "0.1.5-rc2",
"main": "dist/spankbank.js",
"types": "dist/@types/spankbank.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion spankbank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export abstract class SmartContractWrapper {

let options = { ...this.callOptions }
if (!this.callOptions.gasPrice)
options.gasPrice = spankBankContract.estimateGas(contractFuncName)
options.gasPrice = await provider.gasPrice()

const result = await bankWithSigner[contractFuncName](...args)
cb(null, result)
Expand Down

0 comments on commit ca422a4

Please sign in to comment.