relayer icon indicating copy to clipboard operation
relayer copied to clipboard

fix: fix slice init length

Open vetclippy opened this issue 3 months ago • 0 comments

The purpose here should be to initialize a slice with a capacity of len(call.Arguments) and a length of 0, and then append it later. Instead of initializing the length to len(call.Arguments) from the beginning, the resulting slice will not meet expectations.

The online demo: https://go.dev/play/p/q1BcVCmvidW

vetclippy avatar Sep 04 '25 07:09 vetclippy