Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

Commit 7182939

Browse files
committed
test: fix tests
1 parent b5d4862 commit 7182939

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

bindings/encoding/custom_error.go

-14
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,8 @@ package encoding
33
import (
44
"errors"
55
"strings"
6-
7-
"github.com/ethereum/go-ethereum/accounts/abi"
86
)
97

10-
var customErrorMaps = []map[string]abi.Error{
11-
TaikoL1ABI.Errors,
12-
TaikoL2ABI.Errors,
13-
GuardianProverABI.Errors,
14-
LibDepositingABI.Errors,
15-
LibProposingABI.Errors,
16-
LibProvingABI.Errors,
17-
LibUtilsABI.Errors,
18-
LibVerifyingABI.Errors,
19-
AssignmentHookABI.Errors,
20-
}
21-
228
// TryParsingCustomError tries to checks whether the given error is one of the
239
// custom errors defined the TaikoL1 / TaikoL2's ABI, if so, it will return
2410
// the matched custom error, otherwise, it simply returns the original error.

bindings/encoding/input.go

+14
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ var (
279279
LibUtilsABI *abi.ABI
280280
LibVerifyingABI *abi.ABI
281281
AssignmentHookABI *abi.ABI
282+
283+
customErrorMaps []map[string]abi.Error
282284
)
283285

284286
func init() {
@@ -319,6 +321,18 @@ func init() {
319321
if AssignmentHookABI, err = bindings.AssignmentHookMetaData.GetAbi(); err != nil {
320322
log.Crit("Get AssignmentHook ABI error", "error", err)
321323
}
324+
325+
customErrorMaps = []map[string]abi.Error{
326+
TaikoL1ABI.Errors,
327+
TaikoL2ABI.Errors,
328+
GuardianProverABI.Errors,
329+
LibDepositingABI.Errors,
330+
LibProposingABI.Errors,
331+
LibProvingABI.Errors,
332+
LibUtilsABI.Errors,
333+
LibVerifyingABI.Errors,
334+
AssignmentHookABI.Errors,
335+
}
322336
}
323337

324338
// EncodeBlockParams performs the solidity `abi.encode` for the given blockParams.

0 commit comments

Comments
 (0)