This repository was archived by the owner on May 11, 2024. It is now read-only.
Commit 7182939 1 parent b5d4862 commit 7182939 Copy full SHA for 7182939
File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -3,22 +3,8 @@ package encoding
3
3
import (
4
4
"errors"
5
5
"strings"
6
-
7
- "github.com/ethereum/go-ethereum/accounts/abi"
8
6
)
9
7
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
-
22
8
// TryParsingCustomError tries to checks whether the given error is one of the
23
9
// custom errors defined the TaikoL1 / TaikoL2's ABI, if so, it will return
24
10
// the matched custom error, otherwise, it simply returns the original error.
Original file line number Diff line number Diff line change @@ -279,6 +279,8 @@ var (
279
279
LibUtilsABI * abi.ABI
280
280
LibVerifyingABI * abi.ABI
281
281
AssignmentHookABI * abi.ABI
282
+
283
+ customErrorMaps []map [string ]abi.Error
282
284
)
283
285
284
286
func init () {
@@ -319,6 +321,18 @@ func init() {
319
321
if AssignmentHookABI , err = bindings .AssignmentHookMetaData .GetAbi (); err != nil {
320
322
log .Crit ("Get AssignmentHook ABI error" , "error" , err )
321
323
}
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
+ }
322
336
}
323
337
324
338
// EncodeBlockParams performs the solidity `abi.encode` for the given blockParams.
You can’t perform that action at this time.
0 commit comments