aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-05 19:45:32 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-05 19:45:32 +0800
commit78c46d7cc98fdd1e383a22adcd66a916301e2242 (patch)
treedae5bbcb09a8155464ee1039216bb58cf14d1879
parent9f12ef61b0cc8bb295b4a2bbfdf24b41c1584da2 (diff)
downloaddexon-0x-contracts-78c46d7cc98fdd1e383a22adcd66a916301e2242.tar.gz
dexon-0x-contracts-78c46d7cc98fdd1e383a22adcd66a916301e2242.tar.zst
dexon-0x-contracts-78c46d7cc98fdd1e383a22adcd66a916301e2242.zip
Change the order of default overriding
-rw-r--r--src/contract.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contract.ts b/src/contract.ts
index 9dfb04446..26da67b62 100644
--- a/src/contract.ts
+++ b/src/contract.ts
@@ -51,8 +51,8 @@ export class Contract implements Web3.ContractInstance {
txData = args.pop();
}
txData = {
- ...txData,
...this.defaults,
+ ...txData,
};
const callback = (err: Error, data: any) => {
if (_.isNull(err)) {