From f053a7ad58866c8192a64e1e335a2613358385be Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 24 Jun 2021 19:34:27 -0400 Subject: [PATCH] Renamed Interface error coding methods. --- packages/abi/src.ts/interface.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/abi/src.ts/interface.ts b/packages/abi/src.ts/interface.ts index c2ff37381..fa79fdbf0 100644 --- a/packages/abi/src.ts/interface.ts +++ b/packages/abi/src.ts/interface.ts @@ -329,7 +329,7 @@ export class Interface { return this._encodeParams(this.deploy.inputs, values || [ ]); } - decodeErrorData(fragment: ErrorFragment | string, data: BytesLike): Result { + decodeErrorResult(fragment: ErrorFragment | string, data: BytesLike): Result { if (typeof(fragment) === "string") { fragment = this.getError(fragment); } @@ -343,7 +343,7 @@ export class Interface { return this._decodeParams(fragment.inputs, bytes.slice(4)); } - encodeErrorData(fragment: ErrorFragment | string, values?: ReadonlyArray): string { + encodeErrorResult(fragment: ErrorFragment | string, values?: ReadonlyArray): string { if (typeof(fragment) === "string") { fragment = this.getError(fragment); }