Skip to content

Commit

Permalink
Eth2 client: don't remove old headers on migration (#887)
Browse files Browse the repository at this point in the history
* Eth2client: fix out of gas on migration
* Update contract build
  • Loading branch information
karim-en authored Apr 5, 2023
1 parent 1117f95 commit 1cfbaa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/near/eth2-client/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ impl Eth2Client {
#[private]
#[init(ignore_state)]
pub fn migrate() -> Self {
let mut old_state: Eth2ClientV1 = env::state_read().expect("failed");
old_state.unfinalized_headers.clear();
let old_state: Eth2ClientV1 = env::state_read().expect("failed");

Self {
trusted_signer: old_state.trusted_signer,
Expand Down
Binary file modified contracts/near/res/eth2_client.wasm
Binary file not shown.

0 comments on commit 1cfbaa9

Please sign in to comment.