From 92c978e5c20aca96a4297c7d494e154c3a796e71 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 10 Jun 2019 01:57:03 -0400 Subject: [PATCH] Fixed error in throwing an error for ABI decode (#539). --- src.ts/utils/abi-coder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/utils/abi-coder.ts b/src.ts/utils/abi-coder.ts index a631bc1c0..950c7b12a 100644 --- a/src.ts/utils/abi-coder.ts +++ b/src.ts/utils/abi-coder.ts @@ -574,7 +574,7 @@ class CoderFixedBytes extends Coder { decode(data: Uint8Array, offset: number): DecodedResult { if (data.length < offset + 32) { - errors.throwError('insufficient data for ' + name + ' type', errors.INVALID_ARGUMENT, { + errors.throwError('insufficient data for ' + this.name + ' type', errors.INVALID_ARGUMENT, { arg: this.localName, coderType: this.name, value: hexlify(data.slice(offset, offset + 32))