Skip to content

Commit

Permalink
doc: clarified comment on PUSHBytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR4N committed Mar 1, 2024
1 parent 74cfa13 commit eec1de9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion specialops.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ func PUSHSelector(sig string) Bytecoder {
return PUSH(crypto.Keccak256([]byte(sig))[:4])
}

// PUSHBytes accepts [1,32] bytes, returning a PUSH<n> Bytecoder.
// PUSHBytes accepts [1,32] bytes, returning a PUSH<x> Bytecoder where x is the
// smallest number of bytes (possibly zero) that can represent the concatenated
// values; i.e. x = len(bs) - leadingZeros(bs).
func PUSHBytes(bs ...byte) Bytecoder {
return BytecoderFromStackPusher(bytesPusher(bs))
}
Expand Down

0 comments on commit eec1de9

Please sign in to comment.