Skip to content

Commit

Permalink
revert takeBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Dec 19, 2023
1 parent d408154 commit ffe7dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arbos/programs/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func activateProgram(
(*u64)(burner.GasLeft()),
))

data, msg, err := status.toResult(output.takeBytes(), debug)
data, msg, err := status.toResult(output.intoBytes(), debug)
if err != nil {
if debug {
log.Warn("activation failed", "err", err, "msg", msg, "program", program)
Expand Down Expand Up @@ -124,7 +124,7 @@ func callProgram(

depth := interpreter.Depth()
debug := stylusParams.debugMode != 0
data, msg, err := status.toResult(output.takeBytes(), debug)
data, msg, err := status.toResult(output.intoBytes(), debug)
if status == userFailure && debug {
log.Warn("program failure", "err", err, "msg", msg, "program", address, "depth", depth)
}
Expand Down Expand Up @@ -312,7 +312,7 @@ func (vec *rustBytes) read() []byte {
return arbutil.PointerToSlice((*byte)(vec.ptr), int(vec.len))
}

func (vec *rustBytes) takeBytes() []byte {
func (vec *rustBytes) intoBytes() []byte {
slice := vec.read()
vec.drop()
return slice
Expand Down

0 comments on commit ffe7dab

Please sign in to comment.