Rename TxType variants to UpperCamelCase (#7012)

This commit is contained in:
Abner Zheng
2024-03-07 01:36:58 +08:00
committed by GitHub
parent dd6742e8b7
commit 6f8d1a8137
19 changed files with 116 additions and 116 deletions

View File

@ -318,7 +318,7 @@ mod tests {
// 0xb0d6ee650637911394396d81172bd1c637d568ed1fbddab0daddfca399c58b53
ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::DEPOSIT,
tx_type: TxType::Deposit,
success: true,
cumulative_gas_used: 46913,
logs: vec![],
@ -332,7 +332,7 @@ mod tests {
// 0x2f433586bae30573c393adfa02bc81d2a1888a3d6c9869f473fb57245166bd9a
ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::EIP1559,
tx_type: TxType::Eip1559,
success: true,
cumulative_gas_used: 118083,
logs: vec![
@ -376,7 +376,7 @@ mod tests {
// 0x6c33676e8f6077f46a62eabab70bc6d1b1b18a624b0739086d77093a1ecf8266
ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::EIP1559,
tx_type: TxType::Eip1559,
success: true,
cumulative_gas_used: 189253,
logs: vec![
@ -420,7 +420,7 @@ mod tests {
// 0x4d3ecbef04ba7ce7f5ab55be0c61978ca97c117d7da448ed9771d4ff0c720a3f
ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::EIP1559,
tx_type: TxType::Eip1559,
success: true,
cumulative_gas_used: 346969,
logs: vec![
@ -494,7 +494,7 @@ mod tests {
// 0xf738af5eb00ba23dbc1be2dbce41dbc0180f0085b7fb46646e90bf737af90351
ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::EIP1559,
tx_type: TxType::Eip1559,
success: true,
cumulative_gas_used: 623249,
logs: vec![
@ -548,7 +548,7 @@ mod tests {
let bloom = bloom!("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001");
let receipt = ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::EIP2930,
tx_type: TxType::Eip2930,
success: true,
cumulative_gas_used: 102068,
logs,
@ -569,7 +569,7 @@ mod tests {
let bloom = bloom!("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001");
let receipt = ReceiptWithBloom {
receipt: Receipt {
tx_type: TxType::EIP2930,
tx_type: TxType::Eip2930,
success: true,
cumulative_gas_used: 102068,
logs,