aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/abi_decoder.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 21:26:15 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 21:26:15 +0800
commit1baf06531755597e37498005eb2c29aef5114fab (patch)
tree10496d68e7fb45293c0260d96ca084d91f0a1518 /src/utils/abi_decoder.ts
parent88c96c70521a0cc8f2cbdd3500f820e979054125 (diff)
downloaddexon-0x-contracts-1baf06531755597e37498005eb2c29aef5114fab.tar.gz
dexon-0x-contracts-1baf06531755597e37498005eb2c29aef5114fab.tar.zst
dexon-0x-contracts-1baf06531755597e37498005eb2c29aef5114fab.zip
Use startsWith instead of includes
Diffstat (limited to 'src/utils/abi_decoder.ts')
-rw-r--r--src/utils/abi_decoder.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/abi_decoder.ts b/src/utils/abi_decoder.ts
index 528a0e831..f988a5695 100644
--- a/src/utils/abi_decoder.ts
+++ b/src/utils/abi_decoder.ts
@@ -56,7 +56,7 @@ export class AbiDecoder {
}
private padZeros(address: string) {
let formatted = address;
- if (!_.includes(formatted, '0x')) {
+ if (_.startsWith(formatted, '0x')) {
formatted = formatted.slice(2);
}