diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-21 05:41:21 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-21 05:41:21 +0800 |
commit | 647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996 (patch) | |
tree | ef3bb8433ad32e1bf7710170b25e4e6c06a00203 /packages/web3-wrapper | |
parent | 4f76bb2a12e7741be4fbed0455e53de798efa12e (diff) | |
download | dexon-sol-tools-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.gz dexon-sol-tools-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.tar.zst dexon-sol-tools-647bc5a63ecccdcaaad5390d5c7dd5a8d3d07996.zip |
Rename method for clarity
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r-- | packages/web3-wrapper/src/index.ts | 2 |
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; } |