Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to deploy a contract the application crashed #737

Open
2 tasks done
L0GYKAL opened this issue Nov 21, 2024 · 3 comments
Open
2 tasks done

Trying to deploy a contract the application crashed #737

L0GYKAL opened this issue Nov 21, 2024 · 3 comments
Assignees
Labels
bug 🐛 Something isn't working needs triage ♟️ Issue needs to be picked up or assigned

Comments

@L0GYKAL
Copy link

L0GYKAL commented Nov 21, 2024

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.0.2 (420660c 2024-11-21T00:27:54.875617523Z)

What command(s) is the bug in?

forge script

Operating System

Linux

Describe the bug

I tried to execute the script of this repository to deploy an implementation
https://github.com/ondefy/Zyfi-Token-Zkforge
With the following command: forge script ZfiImplementationScript --zksync --slow --chain-id 324 --build-info --build-info-path deployment --rpc-url https://zksync-mainnet.g.alchemy.com/v2/<API-KEY> -vvvvv --account XXX --password XXX --verifier zksync \ --verifier-url https://zksync2-mainnet-explorer.zksync.io/contract_verification \ --verify --broadcast and got this error:

No files changed, compilation skipped
[⠃] Using zksolc-1.4.1
[⠒] Compiling (zksync)
No files changed, compilation skipped
The application panicked (crashed).
Message:  failed finding contract for 0x60a060405230608052348015610013575f80fd5b5060805161253d61003a5f395f818161132e015281816113570152611498015261253d5ff3fe608060405260043610610207575f3560e01c80635c975abb11610113578063a217fddf1161009d578063d53913931161006d578063d5391393146105e1578063d547741f14610601578063dd62ed3e14610620578063dfbaefb11461063f578063e63ab1e914610655575f80fd5b8063a217fddf14610560578063a9059cbb14610573578063ad3cb1cc14610592578063d505accf146105c2575f80fd5b80637ecebe00116100e35780637ecebe00146104d35780638456cb59146104f257806384b0196e1461050657806391d148541461052d57806395d89b411461054c575f80fd5b80635c975abb1461043f57806363ac5d971461046257806370a082311461049557806379cc6790146104b4575f80fd5b80633644e5151161019457806342966c681161016457806342966c68146103bb5780634cd88b76146103da5780634f1ef286146103f957806352d1902d1461040c5780635a47a1a714610420575f80fd5b80633644e5151461035557806336568abe146103695780633f4ba83a1461038857806340c10f191461039c575f80fd5b806323b872dd116101da57806323b872dd146102bc578063248a9ca3146102db57806326dcff15146102fa5780632f2ff15d1461031b578063313ce5671461033a575f80fd5b806301ffc9a71461020b57806306fdde031461023f578063095ea7b31461026057806318160ddd1461027f575b5f80fd5b348015610216575f80fd5b5061022a610225366004611e07565b610675565b60405190151581526020015b60405180910390f35b34801561024a575f80fd5b506102536106ab565b6040516102369190611e7b565b34801561026b575f80fd5b5061022a61027a366004611ea8565b610750565b34801561028a575f80fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b604051908152602001610236565b3480156102c7575f80fd5b5061022a6102d6366004611ed0565b610767565b3480156102e6575f80fd5b506102ae6102f5366004611f09565b610801565b348015610305575f80fd5b50610319610314366004611f20565b610821565b005b348015610326575f80fd5b50610319610335366004611f39565b610978565b348015610345575f80fd5b5060405160128152602001610236565b348015610360575f80fd5b506102ae61099a565b348015610374575f80fd5b50610319610383366004611f39565b6109a8565b348015610393575f80fd5b506103196109e0565b3480156103a7575f80fd5b506103196103b6366004611ea8565b610a02565b3480156103c6575f80fd5b506103196103d5366004611f09565b610a23565b3480156103e5575f80fd5b506103196103f4366004612008565b610a2d565b610319610407366004612068565b610ba1565b348015610417575f80fd5b506102ae610bc0565b34801561042b575f80fd5b5061031961043a3660046120bc565b610bdb565b34801561044a575f80fd5b505f805160206124e88339815191525460ff1661022a565b34801561046d575f80fd5b506102ae7f9c0b3a9882e11a6bfb8283b46d1e79513afb8024ee864cd3a5b3a9050c42a7d781565b3480156104a0575f80fd5b506102ae6104af366004611f20565b610c2c565b3480156104bf575f80fd5b506103196104ce366004611ea8565b610c5c565b3480156104de575f80fd5b506102ae6104ed366004611f20565b610c7d565b3480156104fd575f80fd5b50610319610c87565b348015610511575f80fd5b5061051a610ca6565b60405161023697969594939291906120db565b348015610538575f80fd5b5061022a610547366004611f39565b610d4f565b348015610557575f80fd5b50610253610d85565b34801561056b575f80fd5b506102ae5f81565b34801561057e575f80fd5b5061022a61058d366004611ea8565b610dc3565b34801561059d575f80fd5b50610253604051806040016040528060058152602001640352e302e360dc1b81525081565b3480156105cd575f80fd5b506103196105dc366004612172565b610e26565b3480156105ec575f80fd5b506102ae5f805160206124a883398151915281565b34801561060c575f80fd5b5061031961061b366004611f39565b610f7b565b34801561062b575f80fd5b506102ae61063a3660046121df565b610f97565b34801561064a575f80fd5b505f5460ff1661022a565b348015610660575f80fd5b506102ae5f8051602061248883398151915281565b5f6001600160e01b03198216637965db0b60e01b14806106a557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60605f5f805160206124288339815191525b90508060030180546106ce90612207565b80601f01602080910402602001604051908101604052809291908181526020018280546106fa90612207565b80156107455780601f1061071c57610100808354040283529160200191610745565b820191905f5260205f20905b81548152906001019060200180831161072857829003601f168201915b505050505091505090565b5f3361075d818585610fe0565b5060019392505050565b5f610770610fed565b61079a7f9c0b3a9882e11a6bfb8283b46d1e79513afb8024ee864cd3a5b3a9050c42a7d733610d4f565b156107b2576107aa84848461101f565b5060016107fa565b5f5460ff16156107dd5760405162461bcd60e51b81526004016107d49061223f565b60405180910390fd5b336107e985828561107c565b6107f485858561101f565b60019150505b9392505050565b5f9081525f805160206124c8833981519152602052604090206001015490565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156108665750825b90505f8267ffffffffffffffff1660011480156108825750303b155b905081158015610890575080155b156108ae5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156108d857845460ff60401b1916600160401b1785555b61091f6040518060400160405280600a8152602001692d3cb334902a37b5b2b760b11b815250604051806040016040528060038152602001625a464960e81b815250610a2d565b6109295f876110da565b50831561097057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61098182610801565b61098a8161117b565b61099483836110da565b50505050565b5f6109a3611185565b905090565b6001600160a01b03811633146109d15760405163334bd91960e11b815260040160405180910390fd5b6109db828261118e565b505050565b5f805160206124888339815191526109f78161117b565b6109ff611207565b50565b5f805160206124a8833981519152610a198161117b565b6109db8383611266565b6109ff338261129a565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610a725750825b90505f8267ffffffffffffffff166001148015610a8e5750303b155b905081158015610a9c575080155b15610aba5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610ae457845460ff60401b1916600160401b1785555b610aee87876112ce565b610af66112e0565b610afe6112e8565b610b066112e0565b610b0f876112f8565b610b176112e0565b610b215f336110da565b50610b395f80516020612488833981519152336110da565b50610b515f805160206124a8833981519152336110da565b508315610b9857845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610ba9611323565b610bb2826113c7565b610bbc82826113d1565b5050565b5f610bc961148d565b505f8051602061246883398151915290565b5f610be58161117b565b5f805460ff19168315159081179091556040519081527fcfea93b2060af4c4737eb6d7b0d85428b120e6613299f9b6d7703a689c81d0dc9060200160405180910390a15050565b5f805f805160206124288339815191525b6001600160a01b039093165f9081526020939093525050604090205490565b5f805160206124a8833981519152610c738161117b565b6109db838361129a565b5f6106a5826114d6565b5f80516020612488833981519152610c9e8161117b565b6109ff6114fe565b5f60608082808083815f805160206124488339815191528054909150158015610cd157506001810154155b610d155760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064016107d4565b610d1d611546565b610d25611584565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b5f9182525f805160206124c8833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f80516020612428833981519152916106ce90612207565b5f610dcc610fed565b5f5460ff1615610e1c57610e007f9c0b3a9882e11a6bfb8283b46d1e79513afb8024ee864cd3a5b3a9050c42a7d733610d4f565b610e1c5760405162461bcd60e51b81526004016107d49061223f565b6107fa838361159a565b83421115610e4a5760405163313c898160e11b8152600481018590526024016107d4565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610eb48c6001600160a01b03165f9081527f5ab42ced628888259c08ac98db1eb0cf702fc1501344311d8b100cd1bfe4bb006020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610f0e826115a7565b90505f610f1d828787876115d3565b9050896001600160a01b0316816001600160a01b031614610f64576040516325c0072360e11b81526001600160a01b0380831660048301528b1660248201526044016107d4565b610f6f8a8a8a610fe0565b50505050505050505050565b610f8482610801565b610f8d8161117b565b610994838361118e565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6109db83838360016115ff565b5f805160206124e88339815191525460ff161561101d5760405163d93c066560e01b815260040160405180910390fd5b565b6001600160a01b03831661104857604051634b637e8f60e11b81525f60048201526024016107d4565b6001600160a01b0382166110715760405163ec442f0560e01b81525f60048201526024016107d4565b6109db8383836116e3565b5f6110878484610f97565b90505f1981101561099457818110156110cc57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107d4565b61099484848484035f6115ff565b5f5f805160206124c88339815191526110f38484610d4f565b611172575f848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556111283390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019150506106a5565b5f9150506106a5565b6109ff813361181c565b5f6109a3611855565b5f5f805160206124c88339815191526111a78484610d4f565b15611172575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a460019150506106a5565b61120f6118c8565b5f805160206124e8833981519152805460ff191681557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a150565b6001600160a01b03821661128f5760405163ec442f0560e01b81525f60048201526024016107d4565b610bbc5f83836116e3565b6001600160a01b0382166112c357604051634b637e8f60e11b81525f60048201526024016107d4565b610bbc825f836116e3565b6112d66118f7565b610bbc8282611940565b61101d6118f7565b6112f06118f7565b61101d611990565b6113006118f7565b6109ff81604051806040016040528060018152602001603160f81b8152506119b0565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113a957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661139d5f80516020612468833981519152546001600160a01b031690565b6001600160a01b031614155b1561101d5760405163703e46dd60e11b815260040160405180910390fd5b5f610bbc8161117b565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561142b575060408051601f3d908101601f19168201909252611428918101906122c2565b60015b61145357604051634c9c8ce360e01b81526001600160a01b03831660048201526024016107d4565b5f80516020612468833981519152811461148357604051632a87526960e21b8152600481018290526024016107d4565b6109db8383611a0f565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461101d5760405163703e46dd60e11b815260040160405180910390fd5b5f807f5ab42ced628888259c08ac98db1eb0cf702fc1501344311d8b100cd1bfe4bb00610c3d565b611506610fed565b5f805160206124e8833981519152805460ff191660011781557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833611248565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f80516020612448833981519152916106ce90612207565b60605f5f805160206124488339815191526106bd565b5f3361075d81858561101f565b5f6106a56115b3611185565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f806115e388888888611a64565b9250925092506115f38282611b2c565b50909695505050505050565b5f805160206124288339815191526001600160a01b0385166116365760405163e602df0560e01b81525f60048201526024016107d4565b6001600160a01b03841661165f57604051634a1406b160e11b81525f60048201526024016107d4565b6001600160a01b038086165f908152600183016020908152604080832093881683529290522083905581156116dc57836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516116d391815260200190565b60405180910390a35b5050505050565b5f805160206124288339815191526001600160a01b03841661171d5781816002015f82825461171291906122d9565b9091555061178d9050565b6001600160a01b0384165f908152602082905260409020548281101561176f5760405163391434e360e21b81526001600160a01b038616600482015260248101829052604481018490526064016107d4565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b0383166117ab5760028101805483900390556117c9565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161180e91815260200190565b60405180910390a350505050565b6118268282610d4f565b610bbc5760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016107d4565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61187f611be4565b611887611c4c565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f805160206124e88339815191525460ff1661101d57604051638dfc202b60e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661101d57604051631afcd79f60e31b815260040160405180910390fd5b6119486118f7565b5f805160206124288339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03611981848261233c565b5060048101610994838261233c565b6119986118f7565b5f805160206124e8833981519152805460ff19169055565b6119b86118f7565b5f805160206124488339815191527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026119f1848261233c565b5060038101611a00838261233c565b505f8082556001909101555050565b611a1882611c8e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611a5c576109db8282611cf1565b610bbc611d63565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611a9d57505f91506003905082611b22565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611aee573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116611b1957505f925060019150829050611b22565b92505f91508190505b9450945094915050565b5f826003811115611b3f57611b3f6123f8565b03611b48575050565b6001826003811115611b5c57611b5c6123f8565b03611b7a5760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611b8e57611b8e6123f8565b03611baf5760405163fce698f760e01b8152600481018290526024016107d4565b6003826003811115611bc357611bc36123f8565b03610bbc576040516335e2f38360e21b8152600481018290526024016107d4565b5f5f8051602061244883398151915281611bfc611546565b805190915015611c1457805160209091012092915050565b81548015611c23579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f8051602061244883398151915281611c64611584565b805190915015611c7c57805160209091012092915050565b60018201548015611c23579392505050565b806001600160a01b03163b5f03611cc357604051634c9c8ce360e01b81526001600160a01b03821660048201526024016107d4565b5f8051602061246883398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b031684604051611d0d919061240c565b5f60405180830381855af49150503d805f8114611d45576040519150601f19603f3d011682016040523d82523d5f602084013e611d4a565b606091505b5091509150611d5a858383611d82565b95945050505050565b341561101d5760405163b398979f60e01b815260040160405180910390fd5b606082611d9757611d9282611dde565b6107fa565b8151158015611dae57506001600160a01b0384163b155b15611dd757604051639996b31560e01b81526001600160a01b03851660048201526024016107d4565b50806107fa565b805115611dee5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b5f60208284031215611e17575f80fd5b81356001600160e01b0319811681146107fa575f80fd5b5f5b83811015611e48578181015183820152602001611e30565b50505f910152565b5f8151808452611e67816020860160208601611e2e565b601f01601f19169290920160200192915050565b602081525f6107fa6020830184611e50565b80356001600160a01b0381168114611ea3575f80fd5b919050565b5f8060408385031215611eb9575f80fd5b611ec283611e8d565b946020939093013593505050565b5f805f60608486031215611ee2575f80fd5b611eeb84611e8d565b9250611ef960208501611e8d565b9150604084013590509250925092565b5f60208284031215611f19575f80fd5b5035919050565b5f60208284031215611f30575f80fd5b6107fa82611e8d565b5f8060408385031215611f4a575f80fd5b82359150611f5a60208401611e8d565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115611f9157611f91611f63565b604051601f8501601f19908116603f01168101908282118183101715611fb957611fb9611f63565b81604052809350858152868686011115611fd1575f80fd5b858560208301375f602087830101525050509392505050565b5f82601f830112611ff9575f80fd5b6107fa83833560208501611f77565b5f8060408385031215612019575f80fd5b823567ffffffffffffffff80821115612030575f80fd5b61203c86838701611fea565b93506020850135915080821115612051575f80fd5b5061205e85828601611fea565b9150509250929050565b5f8060408385031215612079575f80fd5b61208283611e8d565b9150602083013567ffffffffffffffff81111561209d575f80fd5b8301601f810185136120ad575f80fd5b61205e85823560208401611f77565b5f602082840312156120cc575f80fd5b813580151581146107fa575f80fd5b60ff60f81b881681525f602060e060208401526120fb60e084018a611e50565b838103604085015261210d818a611e50565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b8181101561216057835183529284019291840191600101612144565b50909c9b505050505050505050505050565b5f805f805f805f60e0888a031215612188575f80fd5b61219188611e8d565b965061219f60208901611e8d565b95506040880135945060608801359350608088013560ff811681146121c2575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f80604083850312156121f0575f80fd5b6121f983611e8d565b9150611f5a60208401611e8d565b600181811c9082168061221b57607f821691505b60208210810361223957634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526057908201527f416363657373436f6e74726f6c3a206163636f756e74206973206d697373696e60408201527f67207472616e7366657272657220726f6c6520746f207472616e73666572206960608201527f6e2070726976617465207472616e73666572206d6f6465000000000000000000608082015260a00190565b5f602082840312156122d2575f80fd5b5051919050565b808201808211156106a557634e487b7160e01b5f52601160045260245ffd5b601f8211156109db57805f5260205f20601f840160051c8101602085101561231d5750805b601f840160051c820191505b818110156116dc575f8155600101612329565b815167ffffffffffffffff81111561235657612356611f63565b61236a816123648454612207565b846122f8565b602080601f83116001811461239d575f84156123865750858301515b5f19600386901b1c1916600185901b178555610970565b5f85815260208120601f198616915b828110156123cb578886015182559484019460019091019084016123ac565b50858210156123e857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52602160045260245ffd5b5f825161241d818460208701611e2e565b919091019291505056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a602dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800cd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300a26469706673582212207ea5d486dfd766f5886015d29e5664de578b306f63b8ff0fd26bef4cb089915f64736f6c63430008160033
Location: /home/runner/work/foundry-zksync/foundry-zksync/crates/cheatcodes/src/inspector.rs:1055

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 7 frames hidden ⋮                               
   8: foundry_cheatcodes::inspector::Cheatcodes::create_common::hc30b9baf98c9cb27
      at <unknown source file>:<unknown line>
   9: <foundry_evm::inspectors::stack::InspectorStackRefMut as revm::inspector::Inspector<&mut dyn foundry_evm_core::backend::DatabaseExt+Error = foundry_fork_db::error::DatabaseError>>::create::hb2ce1c5436419951
      at <unknown source file>:<unknown line>
  10: revm::inspector::handler_register::inspector_handle_register::{{closure}}::h10f88c285e098311
      at <unknown source file>:<unknown line>
  11: foundry_evm_core::utils::create2_handler_register::{{closure}}::h15bda5eebc11da7b
      at <unknown source file>:<unknown line>
  12: revm::evm::Evm<EXT,DB>::transact_preverified_inner::h1296165e686150f5
      at <unknown source file>:<unknown line>
  13: revm::evm::Evm<EXT,DB>::transact::hf96fefce2a9d2656
      at <unknown source file>:<unknown line>
  14: foundry_evm_core::backend::cow::CowBackend::inspect::hbb1cfde1c9e85e0b
      at <unknown source file>:<unknown line>
  15: foundry_evm::executors::Executor::call_with_env::h083f81cc2d2bfe28
      at <unknown source file>:<unknown line>
  16: forge_script::runner::ScriptRunner::call::h0638ea6f793d2e43
      at <unknown source file>:<unknown line>
  17: forge_script::execute::PreExecutionState::execute::{{closure}}::h495e98c7b2b78af7
      at <unknown source file>:<unknown line>
  18: forge_script::ScriptArgs::run_script::{{closure}}::h8e4ce3b9c4016b64
      at <unknown source file>:<unknown line>
  19: tokio::runtime::park::CachedParkThread::block_on::he05a96c7bbdac95b
      at <unknown source file>:<unknown line>
  20: tokio::runtime::context::runtime::enter_runtime::h0baaf6400ee0b7c9
      at <unknown source file>:<unknown line>
  21: tokio::runtime::runtime::Runtime::block_on::hc45a0d891c20202a
      at <unknown source file>:<unknown line>
  22: forge::main::h20df304092543ce4
      at <unknown source file>:<unknown line>
  23: std::sys::backtrace::__rust_begin_short_backtrace::h5b755891f77bf632
      at <unknown source file>:<unknown line>
  24: std::rt::lang_start::{{closure}}::hdfa632be978c0979
      at <unknown source file>:<unknown line>
  25: std::rt::lang_start_internal::hfaad9e988507cb85
      at <unknown source file>:<unknown line>
  26: main<unknown>
      at <unknown source file>:<unknown line>
  27: __libc_start_call_main<unknown>
      at <unknown source file>:<unknown line>
  28: __libc_start_main@GLIBC_2.2.5<unknown>
      at <unknown source file>:<unknown line>
  29: _start<unknown>
      at <unknown source file>:<unknown line>```
@L0GYKAL L0GYKAL added bug 🐛 Something isn't working needs triage ♟️ Issue needs to be picked up or assigned labels Nov 21, 2024
@elfedy
Copy link
Contributor

elfedy commented Nov 22, 2024

@L0GYKAL I could not reproduce from a fresh setup. This error happens sometimes when building a project and switching foundry versions, or something that renders the cache invalid but does not refresh. Did you try running forge clean then running the script again?

@L0GYKAL
Copy link
Author

L0GYKAL commented Nov 22, 2024

I just tried, unfortunately it changed nothing
Still the same error after executing forge clean

[⠰] Compiling 78 files with Solc 0.8.22
[⠃] Solc 0.8.22 finished in 4.36s
Compiler run successful!
[⠃] Using zksolc-1.4.1
[⠒] Compiling (zksync)
[⠒] Compiling 78 files with zksolc and ZKsync solc 0.8.22
[⠰] zksolc and ZKsync solc 0.8.22 finished in 16.99s
Compiler run successful with warnings:
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: Your code or one of its dependencies uses the 'extcodesize' instruction, which is       │
│ usually needed in the following cases:                                                           │
│   1. To detect whether an address belongs to a smart contract.                                   │
│   2. To detect whether the deploy code execution has finished.                                   │
│ zkSync Era comes with native account abstraction support (so accounts are smart contracts,       │
│ including private-key controlled EOAs), and you should avoid differentiating between contracts   │
│ and non-contract addresses.                                                                      │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> lib/forge-std/src/StdCheats.sol
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: Your code or one of its dependencies uses the 'extcodesize' instruction, which is       │
│ usually needed in the following cases:                                                           │
│   1. To detect whether an address belongs to a smart contract.                                   │
│   2. To detect whether the deploy code execution has finished.                                   │
│ zkSync Era comes with native account abstraction support (so accounts are smart contracts,       │
│ including private-key controlled EOAs), and you should avoid differentiating between contracts   │
│ and non-contract addresses.                                                                      │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> lib/forge-std/src/StdUtils.sol
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: It looks like you are using 'ecrecover' to validate a signature of a user account.      │
│ zkSync Era comes with native account abstraction support, therefore it is highly recommended NOT │
│ to rely on the fact that the account has an ECDSA private key attached to it since accounts might│
│ implement other signature schemes.                                                               │
│ Read more about Account Abstraction at https://v2-docs.zksync.io/dev/developer-guides/aa.html    │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> lib/forge-std/src/mocks/MockERC20.sol
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: Your code or one of its dependencies uses the 'extcodesize' instruction, which is       │
│ usually needed in the following cases:                                                           │
│   1. To detect whether an address belongs to a smart contract.                                   │
│   2. To detect whether the deploy code execution has finished.                                   │
│ zkSync Era comes with native account abstraction support (so accounts are smart contracts,       │
│ including private-key controlled EOAs), and you should avoid differentiating between contracts   │
│ and non-contract addresses.                                                                      │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> lib/forge-std/src/mocks/MockERC721.sol
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: It looks like you are using 'ecrecover' to validate a signature of a user account.      │
│ zkSync Era comes with native account abstraction support, therefore it is highly recommended NOT │
│ to rely on the fact that the account has an ECDSA private key attached to it since accounts might│
│ implement other signature schemes.                                                               │
│ Read more about Account Abstraction at https://v2-docs.zksync.io/dev/developer-guides/aa.html    │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: It looks like you are using '<address payable>.send/transfer(<X>)' without providing    │
│ the gas amount. Such calls will fail depending on the pubdata costs.                             │
│ This might be a false positive if you are using an interface (like IERC20) instead of the        │
│ native Solidity `send/transfer`.                                                                 │
│ Please use 'payable(<address>).call{value: <X>}("")' instead, but be careful with the reentrancy │
│ attack. `send` and `transfer` send limited amount of gas that prevents reentrancy, whereas       │
│ `<address>.call{value: <X>}` sends all gas to the callee. Learn more on                          │
│ https: //docs.soliditylang.org/en/latest/security-considerations.html#reentrancy                  │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> src/staking/Vester.sol
Warning

┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Warning: It looks like you are using '<address payable>.send/transfer(<X>)' without providing    │
│ the gas amount. Such calls will fail depending on the pubdata costs.                             │
│ This might be a false positive if you are using an interface (like IERC20) instead of the        │
│ native Solidity `send/transfer`.                                                                 │
│ Please use 'payable(<address>).call{value: <X>}("")' instead, but be careful with the reentrancy │
│ attack. `send` and `transfer` send limited amount of gas that prevents reentrancy, whereas       │
│ `<address>.call{value: <X>}` sends all gas to the callee. Learn more on                          │
│ https: //docs.soliditylang.org/en/latest/security-considerations.html#reentrancy                  │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
--> src/tokens/ERC20MinterPauserPermitUpgradeable.sol
The application panicked (crashed).
Message:  failed finding contract for 0x60a060405230608052348015610013575f80fd5b5060805161253d61003a5f395f818161132e015281816113570152611498015261253d5ff3fe608060405260043610610207575f3560e01c80635c975abb11610113578063a217fddf1161009d578063d53913931161006d578063d5391393146105e1578063d547741f14610601578063dd62ed3e14610620578063dfbaefb11461063f578063e63ab1e914610655575f80fd5b8063a217fddf14610560578063a9059cbb14610573578063ad3cb1cc14610592578063d505accf146105c2575f80fd5b80637ecebe00116100e35780637ecebe00146104d35780638456cb59146104f257806384b0196e1461050657806391d148541461052d57806395d89b411461054c575f80fd5b80635c975abb1461043f57806363ac5d971461046257806370a082311461049557806379cc6790146104b4575f80fd5b80633644e5151161019457806342966c681161016457806342966c68146103bb5780634cd88b76146103da5780634f1ef286146103f957806352d1902d1461040c5780635a47a1a714610420575f80fd5b80633644e5151461035557806336568abe146103695780633f4ba83a1461038857806340c10f191461039c575f80fd5b806323b872dd116101da57806323b872dd146102bc578063248a9ca3146102db57806326dcff15146102fa5780632f2ff15d1461031b578063313ce5671461033a575f80fd5b806301ffc9a71461020b57806306fdde031461023f578063095ea7b31461026057806318160ddd1461027f575b5f80fd5b348015610216575f80fd5b5061022a610225366004611e07565b610675565b60405190151581526020015b60405180910390f35b34801561024a575f80fd5b506102536106ab565b6040516102369190611e7b565b34801561026b575f80fd5b5061022a61027a366004611ea8565b610750565b34801561028a575f80fd5b507f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace02545b604051908152602001610236565b3480156102c7575f80fd5b5061022a6102d6366004611ed0565b610767565b3480156102e6575f80fd5b506102ae6102f5366004611f09565b610801565b348015610305575f80fd5b50610319610314366004611f20565b610821565b005b348015610326575f80fd5b50610319610335366004611f39565b610978565b348015610345575f80fd5b5060405160128152602001610236565b348015610360575f80fd5b506102ae61099a565b348015610374575f80fd5b50610319610383366004611f39565b6109a8565b348015610393575f80fd5b506103196109e0565b3480156103a7575f80fd5b506103196103b6366004611ea8565b610a02565b3480156103c6575f80fd5b506103196103d5366004611f09565b610a23565b3480156103e5575f80fd5b506103196103f4366004612008565b610a2d565b610319610407366004612068565b610ba1565b348015610417575f80fd5b506102ae610bc0565b34801561042b575f80fd5b5061031961043a3660046120bc565b610bdb565b34801561044a575f80fd5b505f805160206124e88339815191525460ff1661022a565b34801561046d575f80fd5b506102ae7f9c0b3a9882e11a6bfb8283b46d1e79513afb8024ee864cd3a5b3a9050c42a7d781565b3480156104a0575f80fd5b506102ae6104af366004611f20565b610c2c565b3480156104bf575f80fd5b506103196104ce366004611ea8565b610c5c565b3480156104de575f80fd5b506102ae6104ed366004611f20565b610c7d565b3480156104fd575f80fd5b50610319610c87565b348015610511575f80fd5b5061051a610ca6565b60405161023697969594939291906120db565b348015610538575f80fd5b5061022a610547366004611f39565b610d4f565b348015610557575f80fd5b50610253610d85565b34801561056b575f80fd5b506102ae5f81565b34801561057e575f80fd5b5061022a61058d366004611ea8565b610dc3565b34801561059d575f80fd5b50610253604051806040016040528060058152602001640352e302e360dc1b81525081565b3480156105cd575f80fd5b506103196105dc366004612172565b610e26565b3480156105ec575f80fd5b506102ae5f805160206124a883398151915281565b34801561060c575f80fd5b5061031961061b366004611f39565b610f7b565b34801561062b575f80fd5b506102ae61063a3660046121df565b610f97565b34801561064a575f80fd5b505f5460ff1661022a565b348015610660575f80fd5b506102ae5f8051602061248883398151915281565b5f6001600160e01b03198216637965db0b60e01b14806106a557506301ffc9a760e01b6001600160e01b03198316145b92915050565b60605f5f805160206124288339815191525b90508060030180546106ce90612207565b80601f01602080910402602001604051908101604052809291908181526020018280546106fa90612207565b80156107455780601f1061071c57610100808354040283529160200191610745565b820191905f5260205f20905b81548152906001019060200180831161072857829003601f168201915b505050505091505090565b5f3361075d818585610fe0565b5060019392505050565b5f610770610fed565b61079a7f9c0b3a9882e11a6bfb8283b46d1e79513afb8024ee864cd3a5b3a9050c42a7d733610d4f565b156107b2576107aa84848461101f565b5060016107fa565b5f5460ff16156107dd5760405162461bcd60e51b81526004016107d49061223f565b60405180910390fd5b336107e985828561107c565b6107f485858561101f565b60019150505b9392505050565b5f9081525f805160206124c8833981519152602052604090206001015490565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156108665750825b90505f8267ffffffffffffffff1660011480156108825750303b155b905081158015610890575080155b156108ae5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff1916600117855583156108d857845460ff60401b1916600160401b1785555b61091f6040518060400160405280600a8152602001692d3cb334902a37b5b2b760b11b815250604051806040016040528060038152602001625a464960e81b815250610a2d565b6109295f876110da565b50831561097057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61098182610801565b61098a8161117b565b61099483836110da565b50505050565b5f6109a3611185565b905090565b6001600160a01b03811633146109d15760405163334bd91960e11b815260040160405180910390fd5b6109db828261118e565b505050565b5f805160206124888339815191526109f78161117b565b6109ff611207565b50565b5f805160206124a8833981519152610a198161117b565b6109db8383611266565b6109ff338261129a565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610a725750825b90505f8267ffffffffffffffff166001148015610a8e5750303b155b905081158015610a9c575080155b15610aba5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610ae457845460ff60401b1916600160401b1785555b610aee87876112ce565b610af66112e0565b610afe6112e8565b610b066112e0565b610b0f876112f8565b610b176112e0565b610b215f336110da565b50610b395f80516020612488833981519152336110da565b50610b515f805160206124a8833981519152336110da565b508315610b9857845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610ba9611323565b610bb2826113c7565b610bbc82826113d1565b5050565b5f610bc961148d565b505f8051602061246883398151915290565b5f610be58161117b565b5f805460ff19168315159081179091556040519081527fcfea93b2060af4c4737eb6d7b0d85428b120e6613299f9b6d7703a689c81d0dc9060200160405180910390a15050565b5f805f805160206124288339815191525b6001600160a01b039093165f9081526020939093525050604090205490565b5f805160206124a8833981519152610c738161117b565b6109db838361129a565b5f6106a5826114d6565b5f80516020612488833981519152610c9e8161117b565b6109ff6114fe565b5f60608082808083815f805160206124488339815191528054909150158015610cd157506001810154155b610d155760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064016107d4565b610d1d611546565b610d25611584565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b5f9182525f805160206124c8833981519152602090815260408084206001600160a01b0393909316845291905290205460ff1690565b7f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace0480546060915f80516020612428833981519152916106ce90612207565b5f610dcc610fed565b5f5460ff1615610e1c57610e007f9c0b3a9882e11a6bfb8283b46d1e79513afb8024ee864cd3a5b3a9050c42a7d733610d4f565b610e1c5760405162461bcd60e51b81526004016107d49061223f565b6107fa838361159a565b83421115610e4a5760405163313c898160e11b8152600481018590526024016107d4565b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610eb48c6001600160a01b03165f9081527f5ab42ced628888259c08ac98db1eb0cf702fc1501344311d8b100cd1bfe4bb006020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610f0e826115a7565b90505f610f1d828787876115d3565b9050896001600160a01b0316816001600160a01b031614610f64576040516325c0072360e11b81526001600160a01b0380831660048301528b1660248201526044016107d4565b610f6f8a8a8a610fe0565b50505050505050505050565b610f8482610801565b610f8d8161117b565b610994838361118e565b6001600160a01b039182165f9081527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace016020908152604080832093909416825291909152205490565b6109db83838360016115ff565b5f805160206124e88339815191525460ff161561101d5760405163d93c066560e01b815260040160405180910390fd5b565b6001600160a01b03831661104857604051634b637e8f60e11b81525f60048201526024016107d4565b6001600160a01b0382166110715760405163ec442f0560e01b81525f60048201526024016107d4565b6109db8383836116e3565b5f6110878484610f97565b90505f1981101561099457818110156110cc57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016107d4565b61099484848484035f6115ff565b5f5f805160206124c88339815191526110f38484610d4f565b611172575f848152602082815260408083206001600160a01b03871684529091529020805460ff191660011790556111283390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019150506106a5565b5f9150506106a5565b6109ff813361181c565b5f6109a3611855565b5f5f805160206124c88339815191526111a78484610d4f565b15611172575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a460019150506106a5565b61120f6118c8565b5f805160206124e8833981519152805460ff191681557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a150565b6001600160a01b03821661128f5760405163ec442f0560e01b81525f60048201526024016107d4565b610bbc5f83836116e3565b6001600160a01b0382166112c357604051634b637e8f60e11b81525f60048201526024016107d4565b610bbc825f836116e3565b6112d66118f7565b610bbc8282611940565b61101d6118f7565b6112f06118f7565b61101d611990565b6113006118f7565b6109ff81604051806040016040528060018152602001603160f81b8152506119b0565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113a957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661139d5f80516020612468833981519152546001600160a01b031690565b6001600160a01b031614155b1561101d5760405163703e46dd60e11b815260040160405180910390fd5b5f610bbc8161117b565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561142b575060408051601f3d908101601f19168201909252611428918101906122c2565b60015b61145357604051634c9c8ce360e01b81526001600160a01b03831660048201526024016107d4565b5f80516020612468833981519152811461148357604051632a87526960e21b8152600481018290526024016107d4565b6109db8383611a0f565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461101d5760405163703e46dd60e11b815260040160405180910390fd5b5f807f5ab42ced628888259c08ac98db1eb0cf702fc1501344311d8b100cd1bfe4bb00610c3d565b611506610fed565b5f805160206124e8833981519152805460ff191660011781557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833611248565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f80516020612448833981519152916106ce90612207565b60605f5f805160206124488339815191526106bd565b5f3361075d81858561101f565b5f6106a56115b3611185565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f806115e388888888611a64565b9250925092506115f38282611b2c565b50909695505050505050565b5f805160206124288339815191526001600160a01b0385166116365760405163e602df0560e01b81525f60048201526024016107d4565b6001600160a01b03841661165f57604051634a1406b160e11b81525f60048201526024016107d4565b6001600160a01b038086165f908152600183016020908152604080832093881683529290522083905581156116dc57836001600160a01b0316856001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040516116d391815260200190565b60405180910390a35b5050505050565b5f805160206124288339815191526001600160a01b03841661171d5781816002015f82825461171291906122d9565b9091555061178d9050565b6001600160a01b0384165f908152602082905260409020548281101561176f5760405163391434e360e21b81526001600160a01b038616600482015260248101829052604481018490526064016107d4565b6001600160a01b0385165f9081526020839052604090209083900390555b6001600160a01b0383166117ab5760028101805483900390556117c9565b6001600160a01b0383165f9081526020829052604090208054830190555b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161180e91815260200190565b60405180910390a350505050565b6118268282610d4f565b610bbc5760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016107d4565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61187f611be4565b611887611c4c565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f805160206124e88339815191525460ff1661101d57604051638dfc202b60e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661101d57604051631afcd79f60e31b815260040160405180910390fd5b6119486118f7565b5f805160206124288339815191527f52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace03611981848261233c565b5060048101610994838261233c565b6119986118f7565b5f805160206124e8833981519152805460ff19169055565b6119b86118f7565b5f805160206124488339815191527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026119f1848261233c565b5060038101611a00838261233c565b505f8082556001909101555050565b611a1882611c8e565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611a5c576109db8282611cf1565b610bbc611d63565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611a9d57505f91506003905082611b22565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611aee573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116611b1957505f925060019150829050611b22565b92505f91508190505b9450945094915050565b5f826003811115611b3f57611b3f6123f8565b03611b48575050565b6001826003811115611b5c57611b5c6123f8565b03611b7a5760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611b8e57611b8e6123f8565b03611baf5760405163fce698f760e01b8152600481018290526024016107d4565b6003826003811115611bc357611bc36123f8565b03610bbc576040516335e2f38360e21b8152600481018290526024016107d4565b5f5f8051602061244883398151915281611bfc611546565b805190915015611c1457805160209091012092915050565b81548015611c23579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f8051602061244883398151915281611c64611584565b805190915015611c7c57805160209091012092915050565b60018201548015611c23579392505050565b806001600160a01b03163b5f03611cc357604051634c9c8ce360e01b81526001600160a01b03821660048201526024016107d4565b5f8051602061246883398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b031684604051611d0d919061240c565b5f60405180830381855af49150503d805f8114611d45576040519150601f19603f3d011682016040523d82523d5f602084013e611d4a565b606091505b5091509150611d5a858383611d82565b95945050505050565b341561101d5760405163b398979f60e01b815260040160405180910390fd5b606082611d9757611d9282611dde565b6107fa565b8151158015611dae57506001600160a01b0384163b155b15611dd757604051639996b31560e01b81526001600160a01b03851660048201526024016107d4565b50806107fa565b805115611dee5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b5f60208284031215611e17575f80fd5b81356001600160e01b0319811681146107fa575f80fd5b5f5b83811015611e48578181015183820152602001611e30565b50505f910152565b5f8151808452611e67816020860160208601611e2e565b601f01601f19169290920160200192915050565b602081525f6107fa6020830184611e50565b80356001600160a01b0381168114611ea3575f80fd5b919050565b5f8060408385031215611eb9575f80fd5b611ec283611e8d565b946020939093013593505050565b5f805f60608486031215611ee2575f80fd5b611eeb84611e8d565b9250611ef960208501611e8d565b9150604084013590509250925092565b5f60208284031215611f19575f80fd5b5035919050565b5f60208284031215611f30575f80fd5b6107fa82611e8d565b5f8060408385031215611f4a575f80fd5b82359150611f5a60208401611e8d565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff80841115611f9157611f91611f63565b604051601f8501601f19908116603f01168101908282118183101715611fb957611fb9611f63565b81604052809350858152868686011115611fd1575f80fd5b858560208301375f602087830101525050509392505050565b5f82601f830112611ff9575f80fd5b6107fa83833560208501611f77565b5f8060408385031215612019575f80fd5b823567ffffffffffffffff80821115612030575f80fd5b61203c86838701611fea565b93506020850135915080821115612051575f80fd5b5061205e85828601611fea565b9150509250929050565b5f8060408385031215612079575f80fd5b61208283611e8d565b9150602083013567ffffffffffffffff81111561209d575f80fd5b8301601f810185136120ad575f80fd5b61205e85823560208401611f77565b5f602082840312156120cc575f80fd5b813580151581146107fa575f80fd5b60ff60f81b881681525f602060e060208401526120fb60e084018a611e50565b838103604085015261210d818a611e50565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b8181101561216057835183529284019291840191600101612144565b50909c9b505050505050505050505050565b5f805f805f805f60e0888a031215612188575f80fd5b61219188611e8d565b965061219f60208901611e8d565b95506040880135945060608801359350608088013560ff811681146121c2575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f80604083850312156121f0575f80fd5b6121f983611e8d565b9150611f5a60208401611e8d565b600181811c9082168061221b57607f821691505b60208210810361223957634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526057908201527f416363657373436f6e74726f6c3a206163636f756e74206973206d697373696e60408201527f67207472616e7366657272657220726f6c6520746f207472616e73666572206960608201527f6e2070726976617465207472616e73666572206d6f6465000000000000000000608082015260a00190565b5f602082840312156122d2575f80fd5b5051919050565b808201808211156106a557634e487b7160e01b5f52601160045260245ffd5b601f8211156109db57805f5260205f20601f840160051c8101602085101561231d5750805b601f840160051c820191505b818110156116dc575f8155600101612329565b815167ffffffffffffffff81111561235657612356611f63565b61236a816123648454612207565b846122f8565b602080601f83116001811461239d575f84156123865750858301515b5f19600386901b1c1916600185901b178555610970565b5f85815260208120601f198616915b828110156123cb578886015182559484019460019091019084016123ac565b50858210156123e857878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52602160045260245ffd5b5f825161241d818460208701611e2e565b919091019291505056fe52c63247e1f47db19d5ce0460030c497f067ca4cebf71ba98eeadabe20bace00a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a602dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800cd5ed15c6e187e77e9aee88184c21f4f2182ab5827cb3b7e07fbedcd63f03300a26469706673582212207ea5d486dfd766f5886015d29e5664de578b306f63b8ff0fd26bef4cb089915f64736f6c63430008160033
Location: /home/runner/work/foundry-zksync/foundry-zksync/crates/cheatcodes/src/inspector.rs:1055

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 7 frames hidden ⋮                               
   8: foundry_cheatcodes::inspector::Cheatcodes::create_common::hc30b9baf98c9cb27
      at <unknown source file>:<unknown line>
   9: <foundry_evm::inspectors::stack::InspectorStackRefMut as revm::inspector::Inspector<&mut dyn foundry_evm_core::backend::DatabaseExt+Error = foundry_fork_db::error::DatabaseError>>::create::hb2ce1c5436419951
      at <unknown source file>:<unknown line>
  10: revm::inspector::handler_register::inspector_handle_register::{{closure}}::h10f88c285e098311
      at <unknown source file>:<unknown line>
  11: foundry_evm_core::utils::create2_handler_register::{{closure}}::h15bda5eebc11da7b
      at <unknown source file>:<unknown line>
  12: revm::evm::Evm<EXT,DB>::transact_preverified_inner::h1296165e686150f5
      at <unknown source file>:<unknown line>
  13: revm::evm::Evm<EXT,DB>::transact::hf96fefce2a9d2656
      at <unknown source file>:<unknown line>
  14: foundry_evm_core::backend::cow::CowBackend::inspect::hbb1cfde1c9e85e0b
      at <unknown source file>:<unknown line>
  15: foundry_evm::executors::Executor::call_with_env::h083f81cc2d2bfe28
      at <unknown source file>:<unknown line>
  16: forge_script::runner::ScriptRunner::call::h0638ea6f793d2e43
      at <unknown source file>:<unknown line>
  17: forge_script::execute::PreExecutionState::execute::{{closure}}::h495e98c7b2b78af7
      at <unknown source file>:<unknown line>
  18: forge_script::ScriptArgs::run_script::{{closure}}::h8e4ce3b9c4016b64
      at <unknown source file>:<unknown line>
  19: tokio::runtime::park::CachedParkThread::block_on::he05a96c7bbdac95b
      at <unknown source file>:<unknown line>
  20: tokio::runtime::context::runtime::enter_runtime::h0baaf6400ee0b7c9
      at <unknown source file>:<unknown line>
  21: tokio::runtime::runtime::Runtime::block_on::hc45a0d891c20202a
      at <unknown source file>:<unknown line>
  22: forge::main::h20df304092543ce4
      at <unknown source file>:<unknown line>
  23: std::sys::backtrace::__rust_begin_short_backtrace::h5b755891f77bf632
      at <unknown source file>:<unknown line>
  24: std::rt::lang_start::{{closure}}::hdfa632be978c0979
      at <unknown source file>:<unknown line>
  25: std::rt::lang_start_internal::hfaad9e988507cb85
      at <unknown source file>:<unknown line>
  26: main<unknown>
      at <unknown source file>:<unknown line>
  27: __libc_start_call_main<unknown>
      at <unknown source file>:<unknown line>
  28: __libc_start_main@GLIBC_2.2.5<unknown>
      at <unknown source file>:<unknown line>
  29: _start<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
[1]    10053 IOT instruction (core dumped)  forge script ZfiImplementationScript --zksync --slow --chain-id 324```

@elfedy
Copy link
Contributor

elfedy commented Nov 22, 2024

@L0GYKAL I believe to have found the root of the problem. Any chance you can change zksolc to be 1.5.7. In this alpha stage of the project we currently only support latest zksolc and recent changes made compilation break for older versions as compiler api changed. We should probably show a warning/less cryptic error though. Can you confirm using zksolc 1.5.7 works (You should run forge clean before trying due to #739)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working needs triage ♟️ Issue needs to be picked up or assigned
Projects
None yet
Development

No branches or pull requests

2 participants