Layr-Labs / incredible-squaring-avs

Basic repo demoing a simple AVS middleware with full eigenlayer integration
Other
169 stars 119 forks source link

anvil bug: latest version results in MemoryLimitOOG when depositing into strategy #34

Closed samlaf closed 6 months ago

samlaf commented 6 months ago

Latest anvil version anvil 0.2.0 (88e09f6 2024-03-25T00:21:20.585130000Z) from https://github.com/foundry-rs/foundry/releases results in this MemoryLimitOOG error.

[2024-03-25 12:14:33.900 PDT] ERROR (logging/zap_logger.go:77) Error depositing into strategy%!(EXTRA string=err, *rpc.jsonError=EVM error MemoryLimitOOG)
Stacktrace
    github.com/Layr-Labs/eigensdk-go/logging.(*ZapLogger).Errorf
        /Users/samlaf/go/pkg/mod/github.com/!layr-!labs/eigensdk-go@v0.1.1-0.20240207213853-8a666597e0f1/logging/zap_logger.go:77
    github.com/Layr-Labs/incredible-squaring-avs/operator.(*Operator).DepositIntoStrategy
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/registration.go:90
    github.com/Layr-Labs/incredible-squaring-avs/operator.(*Operator).registerOperatorOnStartup
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/registration.go:39
    github.com/Layr-Labs/incredible-squaring-avs/operator.NewOperatorFromConfig
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/operator.go:231
    main.operatorMain
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/cmd/main.go:48
    github.com/urfave/cli.HandleAction
        /Users/samlaf/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:524
    github.com/urfave/cli.(*App).Run
        /Users/samlaf/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:286
    main.main
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/cmd/main.go:26
    runtime.main
        /opt/homebrew/Cellar/go/1.21.4/libexec/src/runtime/proc.go:267
[2024-03-25 12:14:33.900 PDT] FATAL (logging/zap_logger.go:61) Error depositing into strategy {"err":"EVM error MemoryLimitOOG"}
Stacktrace
    github.com/Layr-Labs/eigensdk-go/logging.(*ZapLogger).Fatal
        /Users/samlaf/go/pkg/mod/github.com/!layr-!labs/eigensdk-go@v0.1.1-0.20240207213853-8a666597e0f1/logging/zap_logger.go:61
    github.com/Layr-Labs/incredible-squaring-avs/operator.(*Operator).registerOperatorOnStartup
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/registration.go:41
    github.com/Layr-Labs/incredible-squaring-avs/operator.NewOperatorFromConfig
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/operator.go:231
    main.operatorMain
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/cmd/main.go:48
    github.com/urfave/cli.HandleAction
        /Users/samlaf/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:524
    github.com/urfave/cli.(*App).Run
        /Users/samlaf/go/pkg/mod/github.com/urfave/cli@v1.22.14/app.go:286
    main.main
        /Users/samlaf/devel/eigenlayer/incredible-squaring-avs/operator/cmd/main.go:26
    runtime.main
        /opt/homebrew/Cellar/go/1.21.4/libexec/src/runtime/proc.go:267
exit status 1

Not sure which version exactly introduced the issue but verified that commit nightly-de33b6af53005037b463318d2628b5cfcaf39916 works fine.

Definitely seems to be an issue with anvil, as there are other similar issues open, eg https://github.com/foundry-rs/foundry/issues/7490

samlaf commented 6 months ago

fixed in #33 . But also foundry fixed the issue on their side it seems.