@@ -241,7 +241,7 @@ impl Provider {
241
241
bail ! ( ErrorKind :: SignerAccountNotSet ) ;
242
242
}
243
243
let tx_hash = signed_transaction. hash ( ) ;
244
- let contract = Self :: contract_address_from_transaction ( & signed_transaction) . map_err ( |_| ErrorKind :: BadTransactonType ) ?;
244
+ let contract = Self :: contract_address_from_transaction ( & signed_transaction) . map_err ( |_| ErrorKind :: BadTransactionType ) ?;
245
245
let data = signed_transaction. rlp_bytes ( ) ;
246
246
let encrypted_transaction = self . encrypt ( & contract, & Self :: iv_from_transaction ( & signed_transaction) , & data) ?;
247
247
let private = PrivateTransaction :: new ( encrypted_transaction, contract) ;
@@ -415,7 +415,7 @@ impl Provider {
415
415
Action :: Call ( contract) => Ok ( contract) ,
416
416
_ => {
417
417
warn ! ( target: "privatetx" , "Incorrect type of action for the transaction" ) ;
418
- bail ! ( ErrorKind :: BadTransactonType ) ;
418
+ bail ! ( ErrorKind :: BadTransactionType ) ;
419
419
}
420
420
}
421
421
}
@@ -610,7 +610,7 @@ impl Provider {
610
610
/// Create encrypted public contract deployment transaction.
611
611
pub fn public_creation_transaction ( & self , block : BlockId , source : & SignedTransaction , validators : & [ Address ] , gas_price : U256 ) -> Result < ( Transaction , Address ) , Error > {
612
612
if let Action :: Call ( _) = source. action {
613
- bail ! ( ErrorKind :: BadTransactonType ) ;
613
+ bail ! ( ErrorKind :: BadTransactionType ) ;
614
614
}
615
615
let sender = source. sender ( ) ;
616
616
let state = self . client . state_at ( block) . ok_or ( ErrorKind :: StatePruned ) ?;
@@ -649,7 +649,7 @@ impl Provider {
649
649
/// Create encrypted public contract deployment transaction. Returns updated encrypted state.
650
650
pub fn execute_private_transaction ( & self , block : BlockId , source : & SignedTransaction ) -> Result < Bytes , Error > {
651
651
if let Action :: Create = source. action {
652
- bail ! ( ErrorKind :: BadTransactonType ) ;
652
+ bail ! ( ErrorKind :: BadTransactionType ) ;
653
653
}
654
654
let result = self . execute_private ( source, TransactOptions :: with_no_tracing ( ) , block) ?;
655
655
Ok ( result. state )
0 commit comments