Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
fix: rm confusing message
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Dec 2, 2021
1 parent 96f0a43 commit e3c72bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/api-server/src/methods/gw-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ export function parseGwRpcError(error: any): void {

// can't find backend by script hash error
if (err.message?.startsWith("can't find backend for script_hash")) {
throw new RpcError(
err.code,
"to address is not a valid contract. you might accidentally calling the wrong EOA address."
);
throw new RpcError(err.code, "to address is not a valid contract.");
}

throw new RpcError(err.code, err.message);
Expand Down

0 comments on commit e3c72bb

Please sign in to comment.