Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into guanyu-datasource-hp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanisorn Thongprapaisaeng committed Aug 10, 2020
2 parents 6a8f1a6 + 9f68c14 commit cb95b17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_UNRELEASED.md
Expand Up @@ -21,6 +21,7 @@

### Scan

- (impv) [\#2449](https://github.com/bandprotocol/bandchain/pull/2449) Adjusted gas limit as msg
- (impv) [\#2448](https://github.com/bandprotocol/bandchain/pull/2448) Implemented All Datasources page with the new grid system.
- (impv) [\#2416](https://github.com/bandprotocol/bandchain/pull/2416) Added more HD Path index for ledger
- (impv) [\#2394](https://github.com/bandprotocol/bandchain/pull/2394) Implemented the msg on TxMobileTable for GUANYU
Expand Down
2 changes: 1 addition & 1 deletion scan/src/components/modal/submitTx/SubmitTxModal.re
Expand Up @@ -87,7 +87,7 @@ module SubmitTxStep = {
let make = (~account: AccountContext.t, ~setRawTx, ~isActive, ~msg) => {
let (msgsOpt, setMsgsOpt) = React.useState(_ => None);

let gas = 500000;
let gas = SubmitMsg.gasLimit(msg);
let fee = 5000.;
let (memo, setMemo) = React.useState(_ => EnhanceTxInput.{text: "", value: Some("")});

Expand Down
8 changes: 8 additions & 0 deletions scan/src/utils/SubmitMsg.re
Expand Up @@ -12,3 +12,11 @@ let toString =
| Undelegate(_) => "Undelegate"
| Redelegate(_) => "Redelegate"
| WithdrawReward(_) => "Withdraw Reward";

let gasLimit =
fun
| Send(_)
| Delegate(_)
| Undelegate(_)
| WithdrawReward(_) => 200000
| Redelegate(_) => 300000;

0 comments on commit cb95b17

Please sign in to comment.