Skip to content

Commit ac0d1e0

Browse files
authored
feat: update interface to 0.0.14 (#537)
## What ❔ update interface to 0.0.14 ## Why ❔ use latest interface ## Is this a breaking change? - [ ] Yes - [ ] No ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted.
1 parent fc94276 commit ac0d1e0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ keywords = ["blockchain", "zksync", "zk", "risc-v"]
5959
categories = ["cryptography"]
6060

6161
[workspace.dependencies]
62-
zksync_os_evm_errors = { version = "0.0.13", default-features = false }
63-
zksync_os_interface = { version = "0.0.13", default-features = false }
62+
zksync_os_evm_errors = { version = "0.0.14", default-features = false }
63+
zksync_os_interface = { version = "0.0.14", default-features = false }
6464

6565
risc_v_simulator = { git = "https://github.com/matter-labs/zksync-airbender", tag = "v0.5.2"}
6666
blake2s_u32 = { git = "https://github.com/matter-labs/zksync-airbender", tag = "v0.5.2", default-features = false }

forward_system/src/run/convert.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ impl IntoInterface<InvalidTransaction>
120120
basic_bootloader::bootloader::errors::InvalidTransaction::CreateInitCodeSizeLimit => { InvalidTransaction::CreateInitCodeSizeLimit }
121121
basic_bootloader::bootloader::errors::InvalidTransaction::InvalidChainId => { InvalidTransaction::InvalidChainId }
122122
basic_bootloader::bootloader::errors::InvalidTransaction::AccessListNotSupported => { InvalidTransaction::AccessListNotSupported }
123-
// TODO: fix mapping after updating interface
124-
basic_bootloader::bootloader::errors::InvalidTransaction::PubdataPriceTooHigh => { InvalidTransaction::GasPerPubdataTooHigh }
123+
basic_bootloader::bootloader::errors::InvalidTransaction::PubdataPriceTooHigh => { InvalidTransaction::PubdataPriceTooHigh }
125124
basic_bootloader::bootloader::errors::InvalidTransaction::BlockGasLimitTooHigh => { InvalidTransaction::BlockGasLimitTooHigh }
126125
basic_bootloader::bootloader::errors::InvalidTransaction::UpgradeTxNotFirst => { InvalidTransaction::UpgradeTxNotFirst }
127126
basic_bootloader::bootloader::errors::InvalidTransaction::ReceivedInsufficientFees { received, required } => { InvalidTransaction::ReceivedInsufficientFees { received, required } }
@@ -143,8 +142,10 @@ impl IntoInterface<InvalidTransaction>
143142
basic_bootloader::bootloader::errors::InvalidTransaction::BlobListTooLong => {InvalidTransaction::BlobListTooLong}
144143
basic_bootloader::bootloader::errors::InvalidTransaction::EmptyBlobList => {InvalidTransaction::EmptyBlobList}
145144
basic_bootloader::bootloader::errors::InvalidTransaction::BlobElementIsNotSupported => {InvalidTransaction::BlobElementIsNotSupported}
146-
// TODO: add missing errors to interface
147-
_ => todo!()
145+
basic_bootloader::bootloader::errors::InvalidTransaction::CallerGasLimitTooHigh => {InvalidTransaction::CallerGasLimitTooHigh}
146+
basic_bootloader::bootloader::errors::InvalidTransaction::NativeResourcesAreTooExpensive => {InvalidTransaction::NativeResourcesAreTooExpensive}
147+
basic_bootloader::bootloader::errors::InvalidTransaction::EIP7623IntrinsicGasIsTooLow => {InvalidTransaction::EIP7623IntrinsicGasIsTooLow}
148+
basic_bootloader::bootloader::errors::InvalidTransaction::CallerGasLimitMoreThanTxLimit => {InvalidTransaction::CallerGasLimitMoreThanTxLimit}
148149
}
149150
}
150151
}

0 commit comments

Comments
 (0)