go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

accounts/abi: return toGoType error immediately

Open ceyonur opened this issue 2 years ago • 1 comments

Returns the non-nil error before calculating next virtualArgs

ceyonur avatar Aug 21 '22 15:08 ceyonur

Changes in this PR does not change any observable behavior. It just skips some additional calculation overhead before returning the error. Would you like me to add a test that actually returns an error for these methods? @gballet

ceyonur avatar Aug 24 '22 10:08 ceyonur