MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / function_call_transaction

Function function_call_transaction

web3/src/transaction.rs:147–157  ·  view source on GitHub ↗
(contract_account: Account, data: Bytes)

Source from the content-addressed store, hash-verified

145 }
146
147 async fn function_call_transaction(contract_account: Account, data: Bytes) -> Transaction {
148 let nonce = increment_account_1_nonce().await;
149 Transaction::new(
150 *ACCOUNT_1,
151 Some(contract_account),
152 U256::from(10),
153 Some(nonce),
154 Some(data),
155 )
156 .unwrap()
157 }
158
159 pub async fn send_transaction() -> Result<H256> {
160 let transaction_request: TransactionRequest = transaction().await.into();

Calls 1

Tested by

no test coverage detected