We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
'0x' strings returned by contract are incorrectly interpreted as nulls
They should be regular 2 chars length strings
Consider following contract function
function test() external view returns (string memory) { return '0x'; }
Now if we call it:
const myContract = await MyContract.new(); expect(await myContract.test()).to.be.equal('0x');
We will see AssertionError: expected null to equal '0x'
AssertionError: expected null to equal '0x'
1.5.3
No response
The text was updated successfully, but these errors were encountered:
Hey Pzixel, I'm currently taking a look. thank you for creating an issue
Sorry, something went wrong.
nazarhussain
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Current Behavior
'0x' strings returned by contract are incorrectly interpreted as nulls
Expected Behavior
They should be regular 2 chars length strings
Steps to Reproduce
Consider following contract function
Now if we call it:
We will see
AssertionError: expected null to equal '0x'
Web3.js Version
1.5.3
Environment
Anything Else?
No response
The text was updated successfully, but these errors were encountered: