Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Jun 15, 2022
1 parent 88e1b1b commit fc5bba1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eth/tracers/js/tracer_arbitrum.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017 The go-ethereum Authors
// Copyright 2022 The go-ethereum Authors
// This file is part of the go-ethereum library.
//
// The go-ethereum library is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -43,6 +43,7 @@ func (jst *jsTracer) CaptureArbitrumTransfer(
} else {
jst.addNull(obj, "to")
}

jst.addToObj(obj, "value", value)
jst.addToObj(obj, "before", before)
jst.addToObj(obj, "purpose", purpose)
Expand All @@ -56,7 +57,7 @@ func (jst *jsTracer) CaptureArbitrumTransfer(
func (*jsTracer) CaptureArbitrumStorageGet(key common.Hash, depth int, before bool) {}
func (*jsTracer) CaptureArbitrumStorageSet(key, value common.Hash, depth int, before bool) {}

// addToObj pushes a null field to a JS object.
// addNull pushes a null field to a JS object.
func (jst *jsTracer) addNull(obj int, key string) {
jst.vm.PushNull()
jst.vm.PutPropString(obj, key)
Expand Down

0 comments on commit fc5bba1

Please sign in to comment.