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

Commit

Permalink
Merge pull request #296 from juan-cortes/LL-1392
Browse files Browse the repository at this point in the history
LL-1392 Add useAllAmount to eth bridge
  • Loading branch information
gre authored Jul 4, 2019
2 parents 80baa35 + 4dfad32 commit 4e3525f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/bridge/LibcoreEthereumAccountBridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ const editTransactionExtra = (a, t, field, value) => {
);
return { ...t, feeCustomUnit: value };

case "useAllAmount":
invariant(
typeof value === "boolean",
"editTransactionExtra(a,t,'useAllAmount',value): boolean value expected"
);
return { ...t, useAllAmount: value };

default:
return t;
}
Expand All @@ -150,6 +157,9 @@ const getTransactionExtra = (a, t, field) => {
case "feeCustomUnit":
return t.feeCustomUnit;

case "useAllAmount":
return t.useAllAmount;

default:
return undefined;
}
Expand Down

0 comments on commit 4e3525f

Please sign in to comment.