-
Notifications
You must be signed in to change notification settings - Fork 43
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
Decode outputs #36
Decode outputs #36
Conversation
KUDOS! |
87bb5b6
to
1c28d2f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayrat555 shouldn't we provide backward compatibility with the previous versions of the library by allowing ABI.decode, ABI.encode with two input parameters?
@vbaranov the third parameter is optional. So it will work like before |
@ayrat555 I've tried example, you provided, but tried to decode with 2 parameters. Here is the result:
|
@vbaranov I think you're trying to decode output with input types. Different data should be provided for input |
@vbaranov the function doesn't accept any parameters |
Maybe, we should gracefully handle this error?
what do you mean? which one? |
I can work on it as a separate issue. It's the same behaviour that was before my changes
getVersion - |
This PR should be merged after #34
Resolves #25
Now to decode/encode output you should pass data type
:output
as the third parameter. By default, the third parameter is:input
For example