()
| 155 | |
| 156 | #[test] |
| 157 | fn it_increments_a_nonce() { |
| 158 | let mut account_storage = new_account_storage(); |
| 159 | let (_, id) = add_account(&mut account_storage); |
| 160 | let reteived_account_data = account_storage.get_account(&id).unwrap(); |
| 161 | assert_eq!(reteived_account_data.nonce, U256::zero()); |
| 162 | |
| 163 | let next_nonce = U256::from(1); |
| 164 | account_storage.update_nonce(&id, next_nonce).unwrap(); |
| 165 | let reteived_account_data = account_storage.get_account(&id).unwrap(); |
| 166 | assert_eq!(reteived_account_data.nonce, next_nonce); |
| 167 | } |
| 168 | |
| 169 | #[test] |
| 170 | fn it_transfers() { |
nothing calls this directly
no test coverage detected