Skip to content

Commit

Permalink
Changing TransactionV1 structure. From now on a TransactionV1 consist…
Browse files Browse the repository at this point in the history
…s 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.
  • Loading branch information
Jakub Zajkowski committed Oct 10, 2024
1 parent 6e8cbe0 commit 078e98e
Show file tree
Hide file tree
Showing 64 changed files with 4,724 additions and 3,871 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 @@ -507,7 +507,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 078e98e

Please sign in to comment.