mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-13 05:45:02 +00:00
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)
|
||
|
}
|