Skip to content

Commit

Permalink
Merge #4890
Browse files Browse the repository at this point in the history
4890: Changing `TransactionV1` structure. From now on a `TransactionV1` con… r=zajko a=zajko

…sists of `hash`, `payload` and `approvals`. `payload` is a merge of `header` and `body` concepts from before. `body` is not represented in a type-constrained way, instead we use an amorphic `fields` of type `BTreeMap<u16, Bytes>` which is more resistant to future changes.


Co-authored-by: Jakub Zajkowski <[email protected]>
  • Loading branch information
casperlabs-bors-ng[bot] and Jakub Zajkowski authored Oct 17, 2024
2 parents 211cc8d + 434e76f commit 6e9f849
Show file tree
Hide file tree
Showing 64 changed files with 4,714 additions and 3,880 deletions.
2 changes: 1 addition & 1 deletion binary_port/src/error_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ impl From<InvalidTransactionV1> for ErrorCode {
InvalidTransactionV1::EntryPointCannotBeCall => {
ErrorCode::InvalidTransactionEntryPointCannotBeCall
}
InvalidTransactionV1::InvalidTransactionKind(_) => {
InvalidTransactionV1::InvalidTransactionLane(_) => {
ErrorCode::InvalidTransactionInvalidTransactionKind
}
InvalidTransactionV1::GasPriceToleranceTooLow { .. } => {
Expand Down
5 changes: 4 additions & 1 deletion execution_engine/src/engine_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ pub use engine_config::{
};
pub use error::Error;
use execution_kind::ExecutionKind;
pub use wasm_v1::{BlockInfo, ExecutableItem, InvalidRequest, WasmV1Request, WasmV1Result};
pub use wasm_v1::{
BlockInfo, ExecutableItem, InvalidRequest, SessionDataDeploy, SessionDataV1, SessionInputData,
WasmV1Request, WasmV1Result,
};

/// The maximum amount of motes that payment code execution can cost.
pub const MAX_PAYMENT_AMOUNT: u64 = 2_500_000_000;
Expand Down
Loading

0 comments on commit 6e9f849

Please sign in to comment.