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

@ -120,7 +120,9 @@ func TestNativeHelpersCompile(t *testing.T) {
}, nep17TestCases...))
runNativeTestCases(t, cs.GAS.ContractMD, "gas", nep17TestCases)
runNativeTestCases(t, cs.Oracle.ContractMD, "oracle", []nativeTestCase{
{"getPrice", nil},
{"request", []string{`"url"`, "nil", `"callback"`, "nil", "123"}},
{"setPrice", []string{"10"}},
})
runNativeTestCases(t, cs.Designate.ContractMD, "roles", []nativeTestCase{
{"designateAsRole", []string{"1", "[]interop.PublicKey{}"}},