aboutsummaryrefslogtreecommitdiffstats
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
parent88c96c70521a0cc8f2cbdd3500f820e979054125 (diff)
downloaddexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.tar
dexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.tar.gz
dexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.tar.bz2
dexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.tar.lz
dexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.tar.xz
dexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.tar.zst
dexon-sol-tools-1baf06531755597e37498005eb2c29aef5114fab.zip
Use startsWith instead of includes
-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);
}