-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABI Coder Fails to validate correctly provided arguments #4583
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
v6
Issues regarding v6
Comments
Thanks! I'll investigate fist thing in the morning. |
I've verified this is an issue and will go out in the next patch release (hopefully within a few hours). For minimal reproduction, this example is easier to use to reproduce: const coder = new ethers.AbiCoder();
const encoded = coder.encode([ "string", "string" ], [ { }, "symbol" ]);
console.log(encoded);
console.log(coder.decode([ "string", "string" ], encoded)); |
ricmoo
added a commit
that referenced
this issue
Feb 14, 2024
Fixed in v6.11.1. Thanks! :) |
This was referenced May 22, 2024
This was referenced Jun 20, 2024
This was referenced Jun 23, 2024
This was referenced Sep 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Verified to be an issue.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
v6
Issues regarding v6
Ethers Version
6.10.0
Search Terms
abi
Describe the Problem
Abi Coder encoded an invalid value without throwing an error for the invalid type
Expected result:
Actual result:
It treated the complex object as an empty string
Code Snippet
Contract ABI
No response
Errors
No response
Environment
Hardhat
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: