good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 948a600e authored by williamberman's avatar williamberman Committed by GitHub
Browse files

eth/tracers: convert int/hash values from context into js object (#23108)


* Convert int/hash values from context into js object

* Use js fixed buffer

Co-authored-by: default avatarWilliam <william.berman@coinbase.com>
parent 9e23610b
No related branches found
No related tags found
No related merge requests found
......@@ -662,6 +662,13 @@ func (jst *Tracer) GetResult() (json.RawMessage, error) {
case *big.Int:
pushBigInt(val, jst.vm)
case int:
jst.vm.PushInt(val)
case common.Hash:
ptr := jst.vm.PushFixedBuffer(32)
copy(makeSlice(ptr, 32), val[:])
default:
panic(fmt.Sprintf("unsupported type: %T", val))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment