Skip to content

Commit

Permalink
Renamed Interface error coding methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jun 24, 2021
1 parent b1affdb commit f053a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/abi/src.ts/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -343,7 +343,7 @@ export class Interface {
return this._decodeParams(fragment.inputs, bytes.slice(4));
}

encodeErrorData(fragment: ErrorFragment | string, values?: ReadonlyArray<any>): string {
encodeErrorResult(fragment: ErrorFragment | string, values?: ReadonlyArray<any>): string {
if (typeof(fragment) === "string") {
fragment = this.getError(fragment);
}
Expand Down

0 comments on commit f053a7a

Please sign in to comment.