mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 23:55:11 +00:00
oracle: add MinimumResponseGas to interop
It's important for users of oracle contract.
This commit is contained in:
parent
ed358b4c4c
commit
555693d8b8
2 changed files with 7 additions and 1 deletions
|
@ -90,7 +90,7 @@ func TestCryptoLibNamedCurve(t *testing.T) {
|
|||
require.EqualValues(t, native.Secp256r1, crypto.Secp256r1)
|
||||
}
|
||||
|
||||
func TestOracleResponseCodes(t *testing.T) {
|
||||
func TestOracleContractValues(t *testing.T) {
|
||||
require.EqualValues(t, oracle.Success, transaction.Success)
|
||||
require.EqualValues(t, oracle.ProtocolNotSupported, transaction.ProtocolNotSupported)
|
||||
require.EqualValues(t, oracle.ConsensusUnreachable, transaction.ConsensusUnreachable)
|
||||
|
@ -100,6 +100,8 @@ func TestOracleResponseCodes(t *testing.T) {
|
|||
require.EqualValues(t, oracle.ResponseTooLarge, transaction.ResponseTooLarge)
|
||||
require.EqualValues(t, oracle.InsufficientFunds, transaction.InsufficientFunds)
|
||||
require.EqualValues(t, oracle.Error, transaction.Error)
|
||||
|
||||
require.EqualValues(t, oracle.MinimumResponseGas, native.MinimumResponseGas)
|
||||
}
|
||||
|
||||
type nativeTestCase struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue