Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit d6c80c1

Browse files
danacrHCastano
authored andcommitted
Fixed misstype (#10351)
* Fixed misstype BadTransactonType => BadTransactionType * fixed other insances of transacton
1 parent 5123430 commit d6c80c1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ethcore/private-tx/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ error_chain! {
7676
}
7777

7878
#[doc = "Wrong private transaction type."]
79-
BadTransactonType {
79+
BadTransactionType {
8080
description("Wrong private transaction type."),
8181
display("Wrong private transaction type"),
8282
}

ethcore/private-tx/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl Provider {
241241
bail!(ErrorKind::SignerAccountNotSet);
242242
}
243243
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)?;
245245
let data = signed_transaction.rlp_bytes();
246246
let encrypted_transaction = self.encrypt(&contract, &Self::iv_from_transaction(&signed_transaction), &data)?;
247247
let private = PrivateTransaction::new(encrypted_transaction, contract);
@@ -415,7 +415,7 @@ impl Provider {
415415
Action::Call(contract) => Ok(contract),
416416
_ => {
417417
warn!(target: "privatetx", "Incorrect type of action for the transaction");
418-
bail!(ErrorKind::BadTransactonType);
418+
bail!(ErrorKind::BadTransactionType);
419419
}
420420
}
421421
}
@@ -610,7 +610,7 @@ impl Provider {
610610
/// Create encrypted public contract deployment transaction.
611611
pub fn public_creation_transaction(&self, block: BlockId, source: &SignedTransaction, validators: &[Address], gas_price: U256) -> Result<(Transaction, Address), Error> {
612612
if let Action::Call(_) = source.action {
613-
bail!(ErrorKind::BadTransactonType);
613+
bail!(ErrorKind::BadTransactionType);
614614
}
615615
let sender = source.sender();
616616
let state = self.client.state_at(block).ok_or(ErrorKind::StatePruned)?;
@@ -649,7 +649,7 @@ impl Provider {
649649
/// Create encrypted public contract deployment transaction. Returns updated encrypted state.
650650
pub fn execute_private_transaction(&self, block: BlockId, source: &SignedTransaction) -> Result<Bytes, Error> {
651651
if let Action::Create = source.action {
652-
bail!(ErrorKind::BadTransactonType);
652+
bail!(ErrorKind::BadTransactionType);
653653
}
654654
let result = self.execute_private(source, TransactOptions::with_no_tracing(), block)?;
655655
Ok(result.state)

miner/src/pool/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn should_return_correct_nonces_when_dropped_because_of_limit() {
9797
Ok(())
9898
]);
9999
assert_eq!(txq.status().status.transaction_count, 3);
100-
// tx2 transacton got dropped because of limit
100+
// tx2 transaction got dropped because of limit
101101
// tx1 and tx1' are kept, because they have lower insertion_ids so they are preferred.
102102
assert_eq!(txq.next_nonce(TestClient::new(), &sender), None);
103103
}

0 commit comments

Comments
 (0)