@@ -14,9 +14,9 @@ defmodule AecoreChainStateTest do
1414 test "block state" do
1515 block = get_block ( )
1616
17- assert % { "a" => % { balance: 3 , nonce: 102 } ,
18- "b" => % { balance: - 1 , nonce: 1 } ,
19- "c" => % { balance: - 2 , nonce: 1 } } ==
17+ assert % { "a" => % { balance: 1 , nonce: 102 } ,
18+ "b" => % { balance: - 2 , nonce: 1 } ,
19+ "c" => % { balance: - 3 , nonce: 1 } } ==
2020 ChainState . calculate_block_state ( block . txs )
2121 end
2222
@@ -38,13 +38,13 @@ defmodule AecoreChainStateTest do
3838 txs_hash: << 12 , 123 , 12 >> , difficulty_target: 0 , nonce: 0 ,
3939 timestamp: System . system_time ( :milliseconds ) , version: 1 } , txs: [
4040 % SignedTx { data: % TxData { from_acc: "a" , to_acc: "b" ,
41- value: 5 , nonce: 101 } , signature: << 0 >> } ,
41+ value: 5 , nonce: 101 , fee: 1 } , signature: << 0 >> } ,
4242 % SignedTx { data: % TxData { from_acc: "a" , to_acc: "c" ,
43- value: 2 , nonce: 102 } , signature: << 0 >> } ,
43+ value: 2 , nonce: 102 , fee: 1 } , signature: << 0 >> } ,
4444 % SignedTx { data: % TxData { from_acc: "c" , to_acc: "b" ,
45- value: 4 , nonce: 1 } , signature: << 0 >> } ,
45+ value: 4 , nonce: 1 , fee: 1 } , signature: << 0 >> } ,
4646 % SignedTx { data: % TxData { from_acc: "b" , to_acc: "a" ,
47- value: 10 , nonce: 1 } , signature: << 0 >> } ] }
47+ value: 10 , nonce: 1 , fee: 1 } , signature: << 0 >> } ] }
4848 end
4949
5050end
0 commit comments