Skip to content

Commit

Permalink
More clear error for VALUE_TOO_LOW
Browse files Browse the repository at this point in the history
Co-authored-by: Nana Essilfie-Conduah <[email protected]>
Signed-off-by: Simeon Nakov <[email protected]>
  • Loading branch information
simzzz and Nana-EC authored Dec 3, 2024
1 parent 241b54f commit 2d73d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relay/src/lib/errors/JsonRpcError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const predefined = {
}),
VALUE_TOO_LOW: new JsonRpcError({
code: -32602,
message: "Value can't be negative or between 1 wei and 10_000_000_000 wei which is 1 tinybar",
message: "Value can't be non-zero and less than 10_000_000_000 wei which is 1 tinybar",
}),
INVALID_CONTRACT_ADDRESS: (address) => {
let message = `Invalid Contract Address: ${address}.`;
Expand Down

0 comments on commit 2d73d49

Please sign in to comment.