aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.js.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 17:07:36 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 17:07:36 +0800
commitf450f538a0af0b4c85eefdd81c4983f40d230a33 (patch)
tree8352950535358d969237e8c22b6dc084595c15e7 /src/0x.js.ts
parent28dee77db84549db24b95d9aaaca949a2fdec29c (diff)
downloaddexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.tar
dexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.tar.gz
dexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.tar.bz2
dexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.tar.lz
dexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.tar.xz
dexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.tar.zst
dexon-sol-tools-f450f538a0af0b4c85eefdd81c4983f40d230a33.zip
Add setDefaultAccount
Diffstat (limited to 'src/0x.js.ts')
-rw-r--r--src/0x.js.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/0x.js.ts b/src/0x.js.ts
index 25b4af777..5a0d3033c 100644
--- a/src/0x.js.ts
+++ b/src/0x.js.ts
@@ -137,6 +137,13 @@ export class ZeroEx {
this.tokenRegistry.invalidateContractInstance();
this.token.invalidateContractInstances();
}
+
+ /**
+ * Sets default account for sending transactions.
+ */
+ public setDefaultAccount(account: string): void {
+ this.web3Wrapper.setDefaultAccount(account);
+ }
/**
* Signs an orderHash and returns it's elliptic curve signature
* This method currently supports TestRPC, Geth and Parity above and below V1.6.6