Skip to content
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

return valid value and error on suave runtime adapter #172

Closed
wants to merge 1 commit into from

Conversation

jinmel
Copy link
Contributor

@jinmel jinmel commented Jan 24, 2024

📝 Summary

📚 References


  • I have seen and agree to CONTRIBUTING.md

@@ -134,7 +134,7 @@ func (b *SuaveRuntimeAdapter) buildEthBlock(input []byte) (res []byte, err error
unpacked, err = artifacts.SuaveAbi.Methods["buildEthBlock"].Inputs.Unpack(input)
if err != nil {
err = errFailedToUnpackInput
return
return nil, err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It uses named values in the function signature

func (b *SuaveRuntimeAdapter) buildEthBlock(input []byte) (res []byte, err error) {

and then the value is reused

unpacked, err =

Copy link
Contributor Author

@jinmel jinmel Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for teaching me this syntax!

@jinmel jinmel closed this Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants