Fixed error in throwing an error for ABI decode (#539).

This commit is contained in:
Richard Moore 2019-06-10 01:57:03 -04:00
parent 34397fa2aa
commit 92c978e5c2
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -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))