Skip to content

Commit

Permalink
fix fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix committed Jan 31, 2025
1 parent e3b32fb commit 9a9316b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cairo/ethereum/cancun/fork.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func check_transaction{
}
let sender_address = recover_sender(chain_id, tx);
let sender_account = get_account{state=state}(sender_address);
let transaction_type = TransactionImpl._get_transaction_type(tx);
let transaction_type = TransactionImpl.get_transaction_type(tx);
let is_not_blob_or_fee_transaction = (TransactionType.BLOB - transaction_type) * (
TransactionType.FEE_MARKET - transaction_type
);
Expand Down
18 changes: 9 additions & 9 deletions cairo/ethereum/cancun/transactions_types.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace TransactionType {
}

namespace TransactionImpl {
func _get_transaction_type(tx: Transaction) -> felt {
func get_transaction_type(tx: Transaction) -> felt {
if (cast(tx.value.legacy_transaction.value, felt) != 0) {
return TransactionType.LEGACY;
}
Expand All @@ -148,7 +148,7 @@ namespace TransactionImpl {
}
}
func get_gas(tx: Transaction) -> Uint {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.LEGACY) {
return tx.value.legacy_transaction.value.gas;
}
Expand All @@ -168,7 +168,7 @@ namespace TransactionImpl {
}
}
func get_r(tx: Transaction) -> U256 {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.LEGACY) {
return tx.value.legacy_transaction.value.r;
}
Expand All @@ -188,7 +188,7 @@ namespace TransactionImpl {
}
}
func get_s(tx: Transaction) -> U256 {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.LEGACY) {
return tx.value.legacy_transaction.value.s;
}
Expand All @@ -208,7 +208,7 @@ namespace TransactionImpl {
}
}
func get_max_fee_per_gas(tx: Transaction) -> Uint {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.FEE_MARKET) {
return tx.value.fee_market_transaction.value.max_fee_per_gas;
}
Expand All @@ -222,7 +222,7 @@ namespace TransactionImpl {
}
}
func get_max_priority_fee_per_gas(tx: Transaction) -> Uint {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.FEE_MARKET) {
return tx.value.fee_market_transaction.value.max_priority_fee_per_gas;
}
Expand All @@ -236,7 +236,7 @@ namespace TransactionImpl {
}
}
func get_gas_price(tx: Transaction) -> Uint {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.LEGACY) {
return tx.value.legacy_transaction.value.gas_price;
}
Expand All @@ -250,7 +250,7 @@ namespace TransactionImpl {
}
}
func get_nonce(tx: Transaction) -> U256 {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.LEGACY) {
return tx.value.legacy_transaction.value.nonce;
}
Expand All @@ -270,7 +270,7 @@ namespace TransactionImpl {
}
}
func get_value(tx: Transaction) -> U256 {
let tx_type = _get_transaction_type(tx);
let tx_type = get_transaction_type(tx);
if (tx_type == TransactionType.LEGACY) {
return tx.value.legacy_transaction.value.value;
}
Expand Down

0 comments on commit 9a9316b

Please sign in to comment.