Use _.includes instead of indexOf

This commit is contained in:
Leonid Logvinov
2017-09-06 15:14:36 +02:00
parent 68d051d4a7
commit 9680cc1270

View File

@@ -56,7 +56,7 @@ export class AbiDecoder {
}
private padZeros(address: string) {
let formatted = address;
if (formatted.indexOf('0x') !== -1) {
if (!_.includes(formatted, '0x')) {
formatted = formatted.slice(2);
}