native: allow to set oracle request price

This commit is contained in:
Evgeniy Stratonikov 2021-03-05 14:38:16 +03:00
parent 27fc28bd69
commit 256cd09228
4 changed files with 84 additions and 6 deletions

View file

@ -2,6 +2,7 @@ package core
import (
"errors"
"math"
"math/big"
"testing"
@ -248,3 +249,9 @@ func TestOracle_Request(t *testing.T) {
})
})
}
func TestGetSetPrice(t *testing.T) {
bc := newTestChain(t)
testGetSet(t, bc, bc.contracts.Oracle.Hash, "Price",
native.DefaultOracleRequestPrice, 1, math.MaxInt64)
}