You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
derivedBytecodeHash is unreachable from libraries: move it with DerivedDeploy into LibRainDeploy #419
derivedBytecodeHash(DerivedDeploy, uint256 chainId) (refusing with NotDerivedOnChain) is an internal function on the abstract src/abstract/RainDeployVerifyBase.sol, and DerivedDeploy itself is declared in that abstract's file. A library cannot inherit an abstract contract, so no library can call the lookup: rain.factory had to copy its body word for word into LibRainDeployBeaconResolution.derivedCodeHash (rainlanguage/rain.factory#309).
Fix: move DerivedDeploy, NotDerivedOnChain and the lookup into LibRainDeploy (no library owns DerivedDeploy today), have every caller in rain.deploy call LibRainDeploy.derivedBytecodeHash, and drop the abstract's copy. RainDeployVerifyBase.sol keeps re-exporting the struct and error so existing import paths still resolve.
Activity