Skip to content

Commit

Permalink
nit: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
5lliot committed Nov 23, 2023
1 parent 7feb846 commit 7b71824
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ds/execute_parse_len_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"

"github.com/Gearbox-protocol/sdk-go/artifacts/multicall"
"github.com/Gearbox-protocol/sdk-go/core"
"github.com/Gearbox-protocol/sdk-go/core/schemas"
"github.com/Gearbox-protocol/sdk-go/utils"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -42,7 +43,7 @@ func Test_Check1(t *testing.T) {
utils.ReadJsonAndSetInterface("execute_parser/check_failed_token_disabled.json", &data)

calls := data.GetCalls(t)
if !calls.SameMulticallLenAsEvents(data.Events) {
if !calls.SameMulticallLenAsEvents(core.NewVersion(2), data.Events) {
t.Fatalf("expected %d multicalls, but third-eye detected %d. Events: %s. Calls: %s. txhash: %s",
calls.LenOfMulticalls(), len(data.Events),
utils.ToJson(data.Events), calls.String(), data.TxHash)
Expand All @@ -55,7 +56,7 @@ func Test_Check2(t *testing.T) {
utils.ReadJsonAndSetInterface("execute_parser/check_event_len_0.json", &data)

calls := data.GetCalls(t)
if !calls.SameMulticallLenAsEvents(data.Events) {
if !calls.SameMulticallLenAsEvents(core.NewVersion(2), data.Events) {
t.Fatalf("expected %d multicalls, but third-eye detected %d. Events: %s. Calls: %s. txhash: %s",
calls.LenOfMulticalls(), len(data.Events),
utils.ToJson(data.Events), calls.String(), data.TxHash)
Expand Down

0 comments on commit 7b71824

Please sign in to comment.