12 lines
307 B
Go
12 lines
307 B
Go
|
package interop
|
||
|
|
||
|
import (
|
||
|
"github.com/nspcc-dev/neo-go/pkg/core/fee"
|
||
|
"github.com/nspcc-dev/neo-go/pkg/vm/opcode"
|
||
|
)
|
||
|
|
||
|
// GetPrice returns a price for executing op with the provided parameter.
|
||
|
func (ic *Context) GetPrice(op opcode.Opcode, parameter []byte) int64 {
|
||
|
return fee.Opcode(ic.BaseExecFee(), op)
|
||
|
}
|