diff --git a/eth/tracers/js/goja.go b/eth/tracers/js/goja.go index 387f9fbc91..3cc79e4ee7 100644 --- a/eth/tracers/js/goja.go +++ b/eth/tracers/js/goja.go @@ -85,7 +85,7 @@ func fromBuf(vm *goja.Runtime, bufType goja.Value, buf goja.Value, allowString b if !obj.Get("constructor").SameAs(bufType) { break } - b := obj.Get("buffer").Export().(goja.ArrayBuffer).Bytes() + b := obj.Export().([]byte) return b, nil } return nil, errors.New("invalid buffer type")