Skip to content

Commit

Permalink
Merge pull request #19 from ParadigmFoundation/fix/gas-price-conversion
Browse files Browse the repository at this point in the history
Fix gwei to wei unit conversion in gas price
  • Loading branch information
Henry Harder authored Sep 23, 2019
2 parents 48608f0 + 2d6699c commit 8f6c07b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zaidan-dealer-client",
"version": "0.3.9",
"version": "0.3.11",
"main": "dist/index.js",
"repository": "https://github.com/ParadigmFoundation/zaidan-dealer-client",
"license": "MIT",
Expand Down Expand Up @@ -67,4 +67,4 @@
"publishConfig": {
"access": "public"
}
}
}
4 changes: 3 additions & 1 deletion src/DealerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ export class DealerClient {
tokenAddress,
{
from: this.coinbase,
gasPrice: this.GAS_PRICE,

// convert to wei
gasPrice: this.GAS_PRICE.multipliedBy("1e9"),
},
);
return this.web3Wrapper.awaitTransactionSuccessAsync(txId);
Expand Down

0 comments on commit 8f6c07b

Please sign in to comment.