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

Running tests with dirty cache always fails #796

Open
2 tasks done
CodeSandwich opened this issue Dec 19, 2024 · 10 comments
Open
2 tasks done

Running tests with dirty cache always fails #796

CodeSandwich opened this issue Dec 19, 2024 · 10 comments
Assignees
Labels
bug 🐛 Something isn't working needs more info ℹ️ Item requires more detail

Comments

@CodeSandwich
Copy link
Contributor

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 (1781234 2024-12-19T00:26:29.308590729Z)

What command(s) is the bug in?

forge test

Operating System

Linux

Describe the bug

Running forge test always fails unless forge clean && rm -rf zkout is run to completely wipe any cache. Running forge build works fine, but it doesn't fix the tests. An example output after running forge build, so there's nothing to compile anymore:

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

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::hf3e94e49d417e956
      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::he74d8cea8cb7adcb
      at <unknown source file>:<unknown line>
  10: revm::inspector::handler_register::inspector_handle_register::{{closure}}::h6f64961d5dc57447
      at <unknown source file>:<unknown line>
  11: foundry_evm_core::utils::create2_handler_register::{{closure}}::h1d4969ca7dd064a2
      at <unknown source file>:<unknown line>
  12: revm::evm::Evm<EXT,DB>::transact_preverified_inner::hf8d1ac55b5bf1e59
      at <unknown source file>:<unknown line>
  13: revm::evm::Evm<EXT,DB>::transact::h9d607d6211335a2e
      at <unknown source file>:<unknown line>
  14: foundry_evm_core::backend::Backend::inspect::h5d9574c3b8745b52
      at <unknown source file>:<unknown line>
  15: foundry_evm::executors::Executor::transact_with_env::h476a4ad2f221b1fb
      at <unknown source file>:<unknown line>
  16: foundry_evm::executors::Executor::setup::h20f9727cc7c0ef0c
      at <unknown source file>:<unknown line>
  17: forge::runner::ContractRunner::setup::h83b1dda3ce4c765d
      at <unknown source file>:<unknown line>
  18: forge::runner::ContractRunner::run_tests::h40b1b7e4c3a0de8d
      at <unknown source file>:<unknown line>
  19: forge::multi_runner::MultiContractRunner::run_test_suite::hdc2bd22b2e0eed6c
      at <unknown source file>:<unknown line>
  20: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &F>::call_mut::hace2f63154993fde
      at <unknown source file>:<unknown line>
  21: rayon_core::join::join_context::{{closure}}::h38ff1fd080520e82
      at <unknown source file>:<unknown line>
  22: rayon::iter::plumbing::bridge_producer_consumer::helper::h6feafefa03cf349d
      at <unknown source file>:<unknown line>
  23: <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute::h832d925ce54f0492
      at <unknown source file>:<unknown line>
  24: rayon_core::registry::WorkerThread::wait_until_cold::h2b465441e5882b5c
      at <unknown source file>:<unknown line>
  25: rayon_core::registry::ThreadBuilder::run::hbba473d3244bc940
      at <unknown source file>:<unknown line>
  26: std::sys::backtrace::__rust_begin_short_backtrace::hcddb115e796344d6
      at <unknown source file>:<unknown line>
  27: core::ops::function::FnOnce::call_once{{vtable.shim}}::h1bef989cd3b536f6
      at <unknown source file>:<unknown line>
  28: std::sys::pal::unix::thread::Thread::new::thread_start::h6f36a038c6277257
      at <unknown source file>:<unknown line>
  29: start_thread<unknown>
      at <unknown source file>:<unknown line>
  30: __GI___clone3<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.
The application panicked (crashed).
Message:  failed finding contract for 0x6101a0346200042557620055e438819003601f8101601f191683016001600160401b0381118482101762000429578392829160405283396020928391810103126200042557519063ffffffff80831691828403620004255762000094620000656200043d565b601681527f656970313936372e73706c6974732e73746f7261676500000000000000000000838201526200045d565b92620000d2620000a36200043d565b601781527f656970313936372e73747265616d732e73746f72616765000000000000000000848201526200045d565b943060805262000114620000e56200043d565b601781527f656970313936372e6d616e616765642e73746f72616765000000000000000000858201526200045d565b8060a052600160ff198254161790556001821115620003e05760c0526001600160a01b0391633b9aca008201838111620003cc5783165f190191838311620003cc578015620003b85783620001ad93160460e0526101009586526101209485527f656970313936372e64726970732e73746f7261676500000000000000000000006200019f6200043d565b91601583528201526200045d565b9161018092835260c051169061014091825260e05116906101609182526040519361516e9586620004768739608051868181611ebd01528181611ff401526124ca015260a051868181610289015281816105e4015281816107c001528181610bf40152818161143f01528181611498015281816115e8015281816116b70152818161187f015281816119ca01528181611a4e01528181611ad801528181611cab015281816122e401528181612394015281816124550152818161271c0152818161276201528181612b8e01528181612bd101528181612ce101528181612dde0152612eb2015260c0518681816145b90152818161479701528181614abe01528181614b8a01528181614fe1015281816150ce015261510a015260e05186614c150152518581816102d501528181610c4401528181610d17015281816118f701528181612825015281816129c401528181614117015281816141eb015281816142bf0152614421015251848181610485015281816116ef01528181611c2101528181612ac801528181612eec01528181613d2201528181613e490152613fe701525183611de401525182610b0c01525181818161061401528181610819015281816108c101528181611176015281816113d6015281816114d00152818161164e0152818161178701528181611b930152818161292f01528181613781015281816138f201526139870152f35b634e487b7160e01b5f52601260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b60405162461bcd60e51b815260048101849052601460248201527f4379636c65206c656e67746820746f6f206c6f770000000000000000000000006044820152606490fd5b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b60408051919082016001600160401b038111838210176200042957604052565b602081519101206103ff198101908111620003cc579056fe6101006040526004361015610012575f80fd5b5f3560e01c806302cfc75314612e7457806309c1d95f14612d8557806309d48a9414612ccc5780630e18b68114612bbd5780630ea2063a14612b4957806319af326714612b125780631ec026c814612aa8578063202bbca114612a8c5780632776f94c1461297257806327e235e314612904578063302dea391461274657806332f751ec146126fe5780633659cfe6146124a4578063387d2a2f146124865780633f4ba83a14612345578063444e249f1461231b57806346fbf68e146122b55780634f1ef28614611f7757806352d1902d14611ea35780635429f17514611e88578063577e012c14611e4d5780635c60da1b14611e08578063631d669c14611dc85780636961025714611c5257806374dd056514611c095780637dd3f81c14611bce5780637e5b5a8314611b6e5780637fe76df014611a7f5780638456cb591461197b578063879db483146118d15780638bad0c0a146118075780638cd77180146117c45780638d3c100a146116925780638e48a7e51461167757806398aba1cf14611635578063a63767461461156f578063a69aff3c14611552578063aeefca1c1461146a578063b187bd2614611429578063b3a3a57314610b67578063c1a96fe214610b30578063c82051dd14610aed578063d9caed1214610886578063d9e0107014610747578063f0f4fd5e146105bc578063f11d5139146105a1578063f4e45f2d14610523578063f851a440146104de578063f98e7e1d14610465578063fa93c0a21461026a5763ff27d0191461024b575f80fd5b34610266575f60031936011261026657602060405160648152f35b5f80fd5b34610266576102b861027b366132f9565b906102b060ff9693969594957f000000000000000000000000000000000000000000000000000000000000000054161561372a565b8585856142a8565b95929096916102c682614257565b976001600160a01b0385165f527f000000000000000000000000000000000000000000000000000000000000000060205260405f20875f5260205260405f2097845f526001890160205260405f20925f5b85811061040e5750505050505061036c61032f6150ff565b6fffffffffffffffffffffffffffffffff8516966001600160a01b03633b9aca0089021660130b5f0360130b9163ffffffff600182011691614f9d565b604051604081018682526040602083015287518091526020606083019801905f5b8181106103f85750505095847fa02343a8d410763ab5aa692d1838108ac9ceaadf187c5071fa7dbbd10d20c295886020996001600160a01b038716940390a4836103dd575b505050604051908152f35b6103f0926103eb83836138de565b613d1e565b8280806103d2565b82518a526020998a01999092019160010161038d565b806104478d6104245f196001958b030186613d99565b519061043e84610437848b51038b613d99565b5192613d99565b52850387614288565b81549060031b9063ffffffff804216831b921b191617905501610317565b346102665760406003193601126102665761047e613261565b6004355f527f00000000000000000000000000000000000000000000000000000000000000006020526001600160a01b03600160405f200191165f5260205260206fffffffffffffffffffffffffffffffff60405f205416604051908152f35b34610266575f6003193601126102665760206001600160a01b037fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035416604051908152f35b346102665760606003193601126102665760243567ffffffffffffffff8111610266576105549036906004016131c2565b6044356fffffffffffffffffffffffffffffffff811681036102665761057c91600435613dad565b604080516fffffffffffffffffffffffffffffffff9384168152919092166020820152f35b34610266575f60031936011261026657602060405160c88152f35b34610266576020600319360112610266576001600160a01b036105dd61324b565b61060b60ff7f000000000000000000000000000000000000000000000000000000000000000054161561372a565b168015610703577f00000000000000000000000000000000000000000000000000000000000000009081549163ffffffff808416918183146106d6576020947fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000600193848601169116178155825f5201835260405f20827fffffffffffffffffffffffff000000000000000000000000000000000000000082541617905560405191817f749894a8ffc45e1d212322a05461004c7bc358b4d36325766b63526b1ccf8bdf5f80a38152f35b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b606460405162461bcd60e51b815260206004820152601f60248201527f447269766572207265676973746572656420666f7220302061646472657373006044820152fd5b3461026657608060031936011261026657600435602435604435916001600160a01b03831692838103610266576064356fffffffffffffffffffffffffffffffff8116808203610266576107ff6020927f30e2797f85108749fb58c0e7da3e229828df7b148755f420c96d565c7ab6d832946107e760ff7f000000000000000000000000000000000000000000000000000000000000000054161561372a565b6107f38760e01c613775565b83610808575b87613d1e565b604051908152a4005b610812828261396c565b885f5260027f000000000000000000000000000000000000000000000000000000000000000001855261088160405f2061085084825460801c6138ba565b6fffffffffffffffffffffffffffffffff6fffffffffffffffffffffffffffffffff1983549260801b169116179055565b6107f9565b346102665760606003193601126102665761089f61324b565b6108a7613261565b90604435610933610904836001600160a01b03165f5260027f00000000000000000000000000000000000000000000000000000000000000000160205260405f2054906fffffffffffffffffffffffffffffffff82169160801c90565b9061092b6109118661380b565b6fffffffffffffffffffffffffffffffff809316906137fe565b9116906137fe565b8111610aa957610a07916001600160a01b038091169316925f806040519584875280847fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb6020809aa360405194878601917fa9059cbb00000000000000000000000000000000000000000000000000000000835260248701526044860152604485526109be85613118565b604051946109cb866130fc565b8786527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656488870152519082855af1610a0161362d565b9161365c565b8051828115918215610a89575b5050905015610a1f57005b6084906040519062461bcd60e51b82526004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152fd5b838092935001031261026657810151801515810361026657808284610a14565b606460405162461bcd60e51b815260206004820152601a60248201527f5769746864726177616c20616d6f756e7420746f6f20686967680000000000006044820152fd5b34610266575f6003193601126102665760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b34610266576020610b49610b4336613433565b916140d7565b505050506fffffffffffffffffffffffffffffffff60405191168152f35b346102665760e060031936011261026657610b80613261565b67ffffffffffffffff60443581811161026657610ba1903690600401613277565b90606435600f0b606435036102665760843590811161026657610bc8903690600401613277565b60805263ffffffff60a4351660a435036102665763ffffffff60c4351660c4350361026657610c1b60ff7f000000000000000000000000000000000000000000000000000000000000000054161561372a565b610c2960043560e01c613775565b5f606435600f0b136113a6575b6001600160a01b0382165f527f000000000000000000000000000000000000000000000000000000000000000060205260405f206004355f5260205260405f2091610c8183836147f1565b60038301546fffffffffffffffffffffffffffffffff610cc163ffffffff42168563ffffffff8560401c1663ffffffff8660201c16858760601c1661472f565b16600f0b9060643593825f03600f0b80606435600f0b1261139e575b50610d0960809594955160c4359060a435908787016fffffffffffffffffffffffffffffffff1661484a565b6001600160a01b0386165f527f000000000000000000000000000000000000000000000000000000000000000060205260405f20935f955f60a0525b8351871080604051610d56816130fc565b5f81525f60208201529161138b575b84876080515160a051109384604051610d7d816130fc565b5f81525f602082015290611376575b848061136f575b61131c575b8b8580611315575b15610eac57610e2163ffffffff95610e1c8794610e279487515f5260205260206001600160a01b03610df8610de860405f209b8a4216908b808260401c1691871c168d614e61565b9490968a4216918b421690614e61565b929099015160401c1691610e16610e0e84614e35565b8a878d614f9d565b89614f9d565b6150c5565b926150c5565b16928391161180610e99575b610e67575b50505b610e5d575b978798610e4f575b9750610d45565b600160a0510160a052610e48565b9660010196610e40565b600301907fffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000008254161790558b80610e38565b508163ffffffff60038301541611610e33565b50925090508215610f1057610f0b915080515f5289602052602060405f2091610f056001600160a01b03610ef78d63ffffffff42169063ffffffff808260401c1691881c1686614e61565b949093015160401c16614e35565b92614f9d565b610e3b565b508215610fc95780515f52886020526003610f5f60405f2092610e1c60206001600160a01b03610f4e63ffffffff42168d63ffffffff421687614e61565b929094015160401c16908387614f9d565b91019081549063ffffffff82168015908115610fb9575b50610f84Aborted (core dumped)
@CodeSandwich CodeSandwich added bug 🐛 Something isn't working needs triage ♟️ Issue needs to be picked up or assigned labels Dec 19, 2024
@CodeSandwich CodeSandwich changed the title Project compilation with dirty cache always fails Running tests with dirty cache always fails Dec 20, 2024
@vmaark
Copy link

vmaark commented Dec 20, 2024

I had a similar issue, some tests failing with mysterious errors, and only deleting zkout (and cache_forge?) helped.

@Jrigada
Copy link
Contributor

Jrigada commented Dec 26, 2024

Hey! Could you provide a repository with the tests and the foundry.toml you are using? I am not being able to reproduce the error from my end. Are you using the latest changes from the main branch or the release?
Also are you running both forge build and forge test without the --zksync flag right?

@Jrigada Jrigada added needs more info ℹ️ Item requires more detail and removed needs triage ♟️ Issue needs to be picked up or assigned labels Dec 26, 2024
@CodeSandwich
Copy link
Contributor Author

Sure, the repo is https://github.com/drips-network/contracts, branch igor/zksync, the exact commit to reproduce is fc5621894379e77d45e597603b61897e80096371. It's a WIP, there are still issues to solve, at least 1 test failing in zksync and a whole bunch of tests that as of now don't compile for zksync at all, but running forge test --zksync --skip test/Drips.t.sol --skip test/Streams.t.sol reproduces the issue for me.

@Jrigada
Copy link
Contributor

Jrigada commented Jan 2, 2025

Hey @CodeSandwich! I am trying to reproduce the error. I am able to run the tests multiple times without failures using your commit and the latest commit from Foundry-zksync. Are you using the latest release or a particular commit?

Screen.Recording.2025-01-02.at.11.59.57.AM.mov

@Jrigada Jrigada self-assigned this Jan 2, 2025
@CodeSandwich
Copy link
Contributor Author

CodeSandwich commented Jan 3, 2025

That's weird, I'm pretty sure that the behavior is different despite me using the exactly same tooling on code from the same commit. Just running the tests twice doesn't fail the second time anymore. Zksync (not solc) compiles the code again on each run which is slow and feels excessive, but I can't recall it doing that when the issue was present, maybe that's the key?

I can still reproduce the issue when the code is modified though and solc needs to recompile some of the contracts:

  • Run forge clean && rm -rf zkout to clear the cache
  • Run forge test --zksync --skip test/Drips.t.sol --skip test/Streams.t.sol
  • Change anything in the project, e.g. rename one of the tests
  • Run forge test --zksync --skip test/Drips.t.sol --skip test/Streams.t.sol

Edit: tested this again using version 2025-01-03 and it's exactly the same as on 2024-12-19.

@elfedy
Copy link
Contributor

elfedy commented Jan 6, 2025

This may be an instance of zksolc compilation not being deterministic. See #562 for example. We haven't found a good way to solve it yet (besides just recompiling everything every time a test changes). We should probably keep an issue open to unify all these cases.

@CodeSandwich
Copy link
Contributor Author

Probably yes, but it's hard to tell to what extent. The run-run flow seems indeterministic. Can you reproduce the error in the run-modify-run flow? If yes, then we can't rule out that it's deterministic and caused by an entirely different issue.

@Jrigada
Copy link
Contributor

Jrigada commented Jan 6, 2025

I reproduced the flow you mention just now, it didn't throw any error and it recompiled the modified contract. It seems to be part of what @elfedy is mentioning.

forge test --zksync --skip test/Drips.t.sol --skip test/Streams.t.sol
[⠒] Compiling...
[⠒] Compiling 1 files with Solc 0.8.20
[⠑] Solc 0.8.20 finished in 5.61s
Compiler run successful!
[⠃] Using zksolc-1.5.7
[⠒] Compiling (zksync)
[⠢] Compiling 1 files with zksolc and ZKsync solc 0.8.20
[⠆] zksolc and ZKsync solc 0.8.20 finished in 6.30s
Compiler run successful!
Suite result: FAILED. 43 passed; 1 failed; 0 skipped; finished in 20.73s (31.22s CPU time)

Ran 16 test suites in 20.75s (71.30s CPU time): 229 tests passed, 1 failed, 0 skipped (230 total tests)

Failing tests:
Encountered 1 failing test in test/RepoDriver.t.sol:RepoDriverTest
[FAIL: EvmError: Revert] testRequestUpdateOwnerAppliesGasPenalty() (gas: 77379381)

@elfedy
Copy link
Contributor

elfedy commented Jan 6, 2025

If the error does not happen when using --zk-force-evmla flag (and bytecode is still small enough not to make compilation fail) then it's likely non deterministic compilation. If the error persists when using that flag then it's something else.

@CodeSandwich
Copy link
Contributor Author

Yeah, that's non-deterministic for sure, the flag solves it, but so does regular compilation, it just works now. I'm sorry for anybody trying to debug this 😆

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 more info ℹ️ Item requires more detail
Projects
None yet
Development

No branches or pull requests

4 participants