Skip to content
This repository has been archived by the owner on Oct 4, 2019. It is now read-only.

Commit

Permalink
Export UntrustedTransaction and fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Feb 22, 2018
1 parent ee88d6a commit 4c58f73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub use self::params::*;
pub use self::patch::*;
pub use self::eval::{State, Machine, Runtime, MachineStatus};
pub use self::commit::{AccountCommitment, AccountChange, AccountState, BlockhashState, Storage};
pub use self::transaction::{ValidTransaction, TransactionVM};
pub use self::transaction::{ValidTransaction, TransactionVM, UntrustedTransaction};
pub use self::errors::{OnChainError, NotSupportedError, RequireError, CommitError, PreExecutionError};
pub use self::util::opcode::Opcode;
pub use block_core::TransactionAction;
Expand Down
6 changes: 6 additions & 0 deletions src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ macro_rules! system_address {
#[derive(Debug, Clone)]
/// Represents an untrusted Ethereum transaction.
pub struct UntrustedTransaction {
/// The caller. Must be attached with its commitment,
pub caller: AccountCommitment,
/// Transaction gas price.
pub gas_price: Gas,
/// Transaction gas limit.
pub gas_limit: Gas,
/// Action CALL/CREATE of the transaction.
pub action: TransactionAction,
/// Value sent with this transaction.
pub value: U256,
/// Transaction input.
pub input: Rc<Vec<u8>>,
}

Expand Down

0 comments on commit 4c58f73

Please sign in to comment.