(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func TestSetNonce(t *testing.T) { |
| 108 | ms, _ := create() |
| 109 | |
| 110 | var addr common.Address |
| 111 | ms.SetNonce(addr, 10) |
| 112 | |
| 113 | if ms.GetNonce(addr) != 10 { |
| 114 | t.Error("Expected nonce of 10, got", ms.GetNonce(addr)) |
| 115 | } |
| 116 | |
| 117 | addr[0] = 1 |
| 118 | ms.StateDB.SetNonce(addr, 1) |
| 119 | |
| 120 | if ms.GetNonce(addr) != 1 { |
| 121 | t.Error("Expected nonce of 1, got", ms.GetNonce(addr)) |
| 122 | } |
| 123 | } |