Skip to content

Commit

Permalink
fix: check for create entries not just updated
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Jul 19, 2023
1 parent 884fdca commit 09749b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmd/soroban-cli/src/commands/contract/restore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,18 @@ impl Cmd {
..
}),
..
})
| LedgerEntryChange::Created(LedgerEntry {
data:
LedgerEntryData::ContractData(ContractDataEntry {
expiration_ledger_seq,
..
})
| LedgerEntryData::ContractCode(ContractCodeEntry {
expiration_ledger_seq,
..
}),
..
}) => Ok(expiration_ledger_seq),
_ => Err(Error::LedgerEntryNotFound),
}
Expand Down

0 comments on commit 09749b6

Please sign in to comment.