native: allow to set candidate register price

This commit is contained in:
Evgeniy Stratonikov 2021-03-05 14:17:58 +03:00
parent b780a64b4d
commit 27fc28bd69
5 changed files with 84 additions and 1 deletions

View file

@ -1,6 +1,7 @@
package core
import (
"math"
"math/big"
"sort"
"testing"
@ -290,3 +291,9 @@ func TestNEO_TransferOnPayment(t *testing.T) {
require.Equal(t, neoOwner.BytesBE(), arr[1].Value())
require.Equal(t, big.NewInt(amount), arr[2].Value())
}
func TestRegisterPrice(t *testing.T) {
bc := newTestChain(t)
testGetSet(t, bc, bc.contracts.NEO.Hash, "RegisterPrice",
native.DefaultRegisterPrice, 1, math.MaxInt64)
}