Skip to content

Commit d7629fd

Browse files
Merge pull request #259 from OriginTrail/fix/missing-condition-for-gas-price
Fix/missing condition for gas price
2 parents 53fd60e + bc583a3 commit d7629fd

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

index.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3518,6 +3518,8 @@ class BlockchainServiceBase {
35183518
(blockchain.gasPrice || (await this.getNetworkGasPrice(blockchain))) * 1.2,
35193519
);
35203520
}
3521+
} else {
3522+
gasPrice = blockchain.gasPrice || (await this.getNetworkGasPrice(blockchain));
35213523
}
35223524
} else {
35233525
gasPrice = blockchain.gasPrice || (await this.getNetworkGasPrice(blockchain));

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dkg.js",
3-
"version": "8.1.1-rc.3",
3+
"version": "8.1.1-rc.4",
44
"description": "Javascript library for interaction with the OriginTrail Decentralized Knowledge Graph",
55
"main": "index.js",
66
"exports": {

services/blockchain-service/blockchain-service-base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ export default class BlockchainServiceBase {
217217
(blockchain.gasPrice || (await this.getNetworkGasPrice(blockchain))) * 1.2,
218218
);
219219
}
220+
} else {
221+
gasPrice = blockchain.gasPrice || (await this.getNetworkGasPrice(blockchain));
220222
}
221223
} else {
222224
gasPrice = blockchain.gasPrice || (await this.getNetworkGasPrice(blockchain));

0 commit comments

Comments
 (0)