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
Describe the suggested feature and problem it solves.
The initcode hash is published but the initcode is not. If the initcode matching the initcode hash were to be lost, it could cause issues with the final deployment next year.
Describe the desired implementation.
Commit the finalized output files into version control. These include the initcode and the ABI.
Describe alternatives.
Commit separate files with the final initcode and ABI.
Additional context.
I am having trouble generating initcode that matches the published initcode hash.
I worry that the initcode hash in the contest contract may be incorrect because I cannot reproduce it. I calculate 0x44d2e366954aa5a7f0605ffd66ca57a5a71987845939d8d8c79c716d8dfbb3de instead. Here is how:
I checkout main and do forge update and forge build.
I do cat out/PoolManager.t.sol/PoolManagerTest.json | jq -r .bytecode.object > v4.out
In python3 I do:
from web3 import Web3
with open('v4.out', 'r') as f:
v4 = f.read().rstrip()
print(Web3.keccak(hexstr=v4))
The result is 0x44d2e366954aa5a7f0605ffd66ca57a5a71987845939d8d8c79c716d8dfbb3de.
The text was updated successfully, but these errors were encountered:
For cat out/PoolManager.sol/PoolManager.json | jq -r .bytecode.object | pbcopy I get 0x2aa0ab6866fc2e2b2a0a9128e66982a049eb04516c012690426ab110f92966f8 which is also not 0x94d114296a5af85c1fd2dc039cdaa32f1ed4b0fe0868f02d888bfc91feb645d9.
Component
No response
Describe the suggested feature and problem it solves.
The initcode hash is published but the initcode is not. If the initcode matching the initcode hash were to be lost, it could cause issues with the final deployment next year.
Describe the desired implementation.
Commit the finalized output files into version control. These include the initcode and the ABI.
Describe alternatives.
Commit separate files with the final initcode and ABI.
Additional context.
I am having trouble generating initcode that matches the published initcode hash.
I worry that the initcode hash in the contest contract may be incorrect because I cannot reproduce it. I calculate
0x44d2e366954aa5a7f0605ffd66ca57a5a71987845939d8d8c79c716d8dfbb3de
instead. Here is how:I checkout
main
and doforge update
andforge build
.I do
cat out/PoolManager.t.sol/PoolManagerTest.json | jq -r .bytecode.object > v4.out
In python3 I do:
The result is
0x44d2e366954aa5a7f0605ffd66ca57a5a71987845939d8d8c79c716d8dfbb3de
.The text was updated successfully, but these errors were encountered: