1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-18 04:40:03 +02:00

abi.go: Get rid of global state by defining an AbiManager struct.

This commit is contained in:
Henrik Hautakoski 2023-01-12 16:38:03 +01:00
parent 0ded3ee6fe
commit 45d1a468e8
3 changed files with 24 additions and 12 deletions

View file

@ -91,7 +91,7 @@ func processTraces(traces []*ship.TransactionTraceV0) {
HexData: hex.EncodeToString(act_trace.Act.Data),
}
abi, err := GetAbi(act_trace.Act.Account)
abi, err := abi_mgr.GetAbi(act_trace.Act.Account)
if err == nil {
v, err := decodeAction(abi, act_trace.Act.Data, act_trace.Act.Name)
if err != nil {