core/state: add Size() method to NEP5TransferLog
This commit is contained in:
parent
df2598c8dc
commit
3c6d9653b0
2 changed files with 7 additions and 0 deletions
|
@ -25,6 +25,8 @@ func TestNEP5TransferLog_Append(t *testing.T) {
|
|||
require.NoError(t, lg.Append(tr))
|
||||
}
|
||||
|
||||
require.Equal(t, len(expected), lg.Size())
|
||||
|
||||
i := 0
|
||||
err := lg.ForEach(func(tr *NEP5Transfer) error {
|
||||
require.Equal(t, expected[i], tr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue