Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add EIP-7702 - new type transaction #960

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
8 changes: 8 additions & 0 deletions engine-standalone-storage/src/sync/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ impl TransactionKind {
value,
data,
access_list: Vec::new(),
authorization_list: Vec::new(),
}
}
Self::Deploy(data) => {
Expand All @@ -238,6 +239,7 @@ impl TransactionKind {
value: Wei::zero(),
data,
access_list: Vec::new(),
authorization_list: Vec::new(),
}
}
Self::DeployErc20(_) => {
Expand All @@ -256,6 +258,7 @@ impl TransactionKind {
value: Wei::zero(),
data,
access_list: Vec::new(),
authorization_list: Vec::new(),
}
}
Self::FtOnTransfer(args) => {
Expand All @@ -277,6 +280,7 @@ impl TransactionKind {
value,
data: Vec::new(),
access_list: Vec::new(),
authorization_list: Vec::new(),
}
} else {
let from = Self::get_implicit_address(engine_account);
Expand Down Expand Up @@ -313,6 +317,7 @@ impl TransactionKind {
value: Wei::zero(),
data,
access_list: Vec::new(),
authorization_list: Vec::new(),
}
}
}
Expand Down Expand Up @@ -345,6 +350,7 @@ impl TransactionKind {
value,
data: Vec::new(),
access_list: Vec::new(),
authorization_list: Vec::new(),
}
},
|erc20_address| {
Expand Down Expand Up @@ -372,6 +378,7 @@ impl TransactionKind {
value: Wei::zero(),
data,
access_list: Vec::new(),
authorization_list: Vec::new(),
}
},
)
Expand Down Expand Up @@ -474,6 +481,7 @@ impl TransactionKind {
value: Wei::zero(),
data: method_name.as_bytes().to_vec(),
access_list: Vec::new(),
authorization_list: Vec::new(),
}
}

Expand Down
1 change: 1 addition & 0 deletions engine-tests/src/utils/solidity/erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,6 @@ pub fn legacy_into_normalized_tx(tx: TransactionLegacy) -> NormalizedEthTransact
value: tx.value,
data: tx.data,
access_list: Vec::new(),
authorization_list: Vec::new(),
}
}
3 changes: 3 additions & 0 deletions engine-transactions/src/backwards_compatibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ impl EthTransactionKindAdapter {
tx.transaction.to = None;
}
}
EthTransactionKind::Eip7702(_) => {
unreachable!();
}
}
}

Expand Down
Loading
Loading