aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-21 05:41:21 +0800
committerFabio Berger <me@fabioberger.com>2018-03-21 05:41:21 +0800
commit647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996 (patch)
treeef3bb8433ad32e1bf7710170b25e4e6c06a00203 /packages/web3-wrapper
parent4f76bb2a12e7741be4fbed0455e53de798efa12e (diff)
downloaddexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar
dexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.gz
dexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.bz2
dexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.lz
dexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.xz
dexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.zst
dexon-0x-contracts-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.zip
Rename method for clarity
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r--packages/web3-wrapper/src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/web3-wrapper/src/index.ts b/packages/web3-wrapper/src/index.ts
index e508c4f5b..975649a75 100644
--- a/packages/web3-wrapper/src/index.ts
+++ b/packages/web3-wrapper/src/index.ts
@@ -70,7 +70,7 @@ export class Web3Wrapper {
const codeIsEmpty = /^0x0{0,40}$/i.test(code);
return !codeIsEmpty;
}
- public async signTransactionAsync(address: string, message: string): Promise<string> {
+ public async signMessageAsync(address: string, message: string): Promise<string> {
const signData = await promisify<string>(this._web3.eth.sign)(address, message);
return signData;
}