File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
crates/anvil/core/src/eth/transaction Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -1398,19 +1398,18 @@ mod tests {
13981398 fn test_from_recovered_tx_legacy ( ) {
13991399 let tx = r#"
14001400 {
1401- "Legacy": {
1402- "chainId": "0x1",
1403- "nonce": "0x0",
1404- "gas": "0x5208",
1405- "gasPrice": "0x1",
1406- "to": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
1407- "value": "0x1",
1408- "input": "0x",
1409- "r": "0x85c2794a580da137e24ccc823b45ae5cea99371ae23ee13860fcc6935f8305b0",
1410- "s": "0x41de7fa4121dab284af4453d30928241208bafa90cdb701fe9bc7054759fe3cd",
1411- "v": "0x1b",
1412- "hash": "0x8c9b68e8947ace33028dba167354fde369ed7bbe34911b772d09b3c64b861515"
1413- }
1401+ "type": "0x0",
1402+ "chainId": "0x1",
1403+ "nonce": "0x0",
1404+ "gas": "0x5208",
1405+ "gasPrice": "0x1",
1406+ "to": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
1407+ "value": "0x1",
1408+ "input": "0x",
1409+ "r": "0x85c2794a580da137e24ccc823b45ae5cea99371ae23ee13860fcc6935f8305b0",
1410+ "s": "0x41de7fa4121dab284af4453d30928241208bafa90cdb701fe9bc7054759fe3cd",
1411+ "v": "0x1b",
1412+ "hash": "0x8c9b68e8947ace33028dba167354fde369ed7bbe34911b772d09b3c64b861515"
14141413 }"# ;
14151414
14161415 let typed_tx: TypedTransaction = serde_json:: from_str ( tx) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments