pub fn new_script(
        sender: AccountAddress,
        sequence_number: u64,
        script: Script,
        max_gas_amount: u64,
        gas_unit_price: u64,
        expiration_time: Duration,
    ) -> Self {
        RawTransaction {
            sender,
            sequence_number,
            payload: TransactionPayload::Script(script),
            max_gas_amount,
            gas_unit_price,
            expiration_time,
        }
    }
/// Create a new `RawTransaction` with a script.
///
/// A script transaction contains only code to execute. No publishing is allowed in scripts.
Create a new `RawTransaction` with a script.
A script transaction contains only code to execute. No publishing is allowed in scripts.
Create a new ` RawTransaction ` with a script . A script transaction contains only code to execute . No publishing is allowed in scripts .
pub fn new_script(
        sender: AccountAddress,
        sequence_number: u64,
        script: Script,
        max_gas_amount: u64,
        gas_unit_price: u64,
        expiration_time: Duration,
    ) -> Self {
        RawTransaction {
            sender,
            sequence_number,
            payload: TransactionPayload::Script(script),
            max_gas_amount,
            gas_unit_price,
            expiration_time,
        }
    }
pub fn new_script ( sender : AccountAddress , sequence_number : u64 , script : Script , max_gas_amount : u64 , gas_unit_price : u64 , expiration_time : Duration , ) -> Self { RawTransaction { sender , sequence_number , payload : TransactionPayload :: Script ( script ) , max_gas_amount , gas_unit_price , expiration_time , } }
Create a new `RawTransaction` with a script.
Create a new ` RawTransaction ` with a script .
sender
AccountAddress
sequence_number
u64
script
Script
max_gas_amount
u64
gas_unit_price
u64
expiration_time
Duration