From 1baf06531755597e37498005eb2c29aef5114fab Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 6 Sep 2017 15:26:15 +0200 Subject: Use startsWith instead of includes --- src/utils/abi_decoder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/abi_decoder.ts') 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); } -- cgit v1.2.3