Skip to content

Commit bcc4a22

Browse files
committed
wip: debug precompiles
1 parent 9aba34f commit bcc4a22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

op-chain-ops/script/precompile.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ func (p *Precompile[E]) Run(input []byte) ([]byte, error) {
573573
sig := [4]byte(input[:4])
574574
params := input[4:]
575575
fn, ok := p.abiMethods[sig]
576+
for k, v := range p.abiMethods {
577+
fmt.Printf("4byte: %x ABI: %s Go: %s\n", k, v.abiSignature, v.goName)
578+
}
576579
if !ok {
577580
return encodeRevert(fmt.Errorf("unrecognized 4 byte signature: %x", sig))
578581
}

0 commit comments

Comments
 (0)