Skip to content

Conversation

@palango
Copy link

@palango palango commented Nov 25, 2024

  • Update to latest op-geth with baklava related fixes
  • Add baklava config for state migration

The migration config was obtained form a little script checking all accounts. All but one of the contracts which exist on Alfajores are not deployed on Baklava.

% sh check-chain.sh
Processing address: 0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2
Code mismatch for address: 0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x0000000071727De22E5E9d8BAf0edAc6f37da032
Code mismatch for address: 0x0000000071727De22E5E9d8BAf0edAc6f37da032
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x000000000022D473030F116dDEE9F6B43aC78BA3
Code mismatch for address: 0x000000000022D473030F116dDEE9F6B43aC78BA3
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Code mismatch for address: 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x4e59b44847b379578588920cA78FbF26c0B4956C
Code match for address: 0x4e59b44847b379578588920cA78FbF26c0B4956C
Processing address: 0xfb1bffC9d739B8D520DaF37dF666da4C687191EA
Code mismatch for address: 0xfb1bffC9d739B8D520DaF37dF666da4C687191EA
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x998739BFdAAdde7C933B942a68053933098f9EDa
Code mismatch for address: 0x998739BFdAAdde7C933B942a68053933098f9EDa
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0xEFC2c1444eBCC4Db75e7613d20C6a62fF67A167C
Code mismatch for address: 0xEFC2c1444eBCC4Db75e7613d20C6a62fF67A167C
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x7fc98430eAEdbb6070B35B39D798725049088348
Code mismatch for address: 0x7fc98430eAEdbb6070B35B39D798725049088348
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0xcA11bde05977b3631167028862bE2a173976CA11
Code mismatch for address: 0xcA11bde05977b3631167028862bE2a173976CA11
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x69f4D1788e39c87893C980c06EdF4b7f686e2938
Code mismatch for address: 0x69f4D1788e39c87893C980c06EdF4b7f686e2938
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B
Code mismatch for address: 0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7
Code mismatch for address: 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0
Processing address: 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed
Code mismatch for address: 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0

Resolves https://github.com/celo-org/celo-blockchain-planning/issues/630

@palango palango requested a review from karlb November 25, 2024 14:59
@palango palango force-pushed the palango/baklava branch 3 times, most recently from 468064f to 75916ec Compare November 25, 2024 15:49
Comment on lines +83 to +86
BaklavaNetworkID: {
// DeterministicDeploymentProxy
common.HexToAddress("0x4e59b44847b379578588920cA78FbF26c0B4956C"): false,
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need only a single entry compared to the many for alfajores?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Processing address: 0xcA11bde05977b3631167028862bE2a173976CA11
Code mismatch for address: 0xcA11bde05977b3631167028862bE2a173976CA11
Codesize on https://baklava-forno.celo-testnet.org: 0
Nonce on https://baklava-forno.celo-testnet.org: 0

From the output we see that 0xcA11bde05977b3631167028862bE2a173976CA11 doesn't have any code or nonce on Baklava, so that account will be overwritten by default.

The same is true for all accounts besides the one listed.

@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.31%. Comparing base (81fde1a) to head (a00348e).

Additional details and impacted files
@@           Coverage Diff           @@
##           celo10     #272   +/-   ##
=======================================
  Coverage   68.30%   68.31%           
=======================================
  Files          54       54           
  Lines        4118     4119    +1     
=======================================
+ Hits         2813     2814    +1     
  Misses       1126     1126           
  Partials      179      179           
Flag Coverage Δ
cannon-go-tests 68.31% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cannon/mipsevm/testutil/evm.go 71.05% <100.00%> (+0.25%) ⬆️

@palango palango marked this pull request as ready for review November 25, 2024 17:08
@palango
Copy link
Author

palango commented Nov 26, 2024

I'm not sure if the failure in devnet-celo are coming from this PR or have been existing before.

@palango palango requested a review from karlb November 29, 2024 11:30
@palango
Copy link
Author

palango commented Nov 29, 2024

Updated to use the latest Baklava compatible op-geth.

@palango palango merged commit 9070301 into celo10 Nov 29, 2024
56 of 57 checks passed
@palango palango deleted the palango/baklava branch November 29, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants