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

Commit

Permalink
chore(clippy): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Mar 18, 2022
1 parent 765d982 commit 38ebbb9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ethers-contract/src/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,17 @@ impl<M: Middleware, C: From<Contract<M>>> ContractDeployer<M, C> {
}

/// Sets the number of confirmations to wait for the contract deployment transaction
#[must_use]
pub fn confirmations<T: Into<usize>>(mut self, confirmations: T) -> Self {
self.deployer.confs = confirmations.into();
self
}

#[must_use]
pub fn block<T: Into<BlockNumber>>(mut self, block: T) -> Self {
self.deployer.block = block.into();
self
}

/// Uses a Legacy transaction instead of an EIP-1559 one to do the deployment
#[must_use]
pub fn legacy(mut self) -> Self {
self.deployer = self.deployer.legacy();
self
Expand Down Expand Up @@ -105,20 +102,17 @@ pub struct Deployer<M> {

impl<M: Middleware> Deployer<M> {
/// Sets the number of confirmations to wait for the contract deployment transaction
#[must_use]
pub fn confirmations<T: Into<usize>>(mut self, confirmations: T) -> Self {
self.confs = confirmations.into();
self
}

#[must_use]
pub fn block<T: Into<BlockNumber>>(mut self, block: T) -> Self {
self.block = block.into();
self
}

/// Uses a Legacy transaction instead of an EIP-1559 one to do the deployment
#[must_use]
pub fn legacy(mut self) -> Self {
self.tx = match self.tx {
TypedTransaction::Eip1559(inner) => {
Expand Down

0 comments on commit 38ebbb9

Please sign in to comment.