native: allow to set oracle request price
This commit is contained in:
parent
27fc28bd69
commit
256cd09228
4 changed files with 84 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue