Layr-Labs / incredible-squaring-avs

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

add sleep to fix run issue from new saved state #30

Closed mohammed7s closed 3 months ago

mohammed7s commented 3 months ago

Running make start-anvil-chain-with-el-and-avs-deployed command with existing json state works fine.

However, if one wishes to deploy their modified contracts to produce a new tests/anvil/avs-and-eigenlayer-deployed-anvil-state.json file by running the make deploy-incredible-squaring-contracts-to-anvil-and-save-state first , and then when wish to run again from the saved json using the original make command make start-anvil-chain-with-el-and-avs-deployed produces this error:

image

The fix is to simply sleep for few seconds after loading the json state before making any calls to the node.

mohammed7s commented 3 months ago

I just realized #29 fixes the same issue. I will leave it here for extra context as this PR provides more info and can close once fix is merged

samlaf commented 3 months ago

Thanks for raising this. Added the sleep line in https://github.com/Layr-Labs/incredible-squaring-avs/pull/33