13 lines
335 B
Go
13 lines
335 B
Go
package interop
|
|
|
|
import (
|
|
"github.com/tutus-one/tutus-chain/pkg/core/fee"
|
|
"github.com/tutus-one/tutus-chain/pkg/vm/opcode"
|
|
)
|
|
|
|
// GetPrice returns a price for executing op with the provided parameter in
|
|
// picoGAS units.
|
|
func (ic *Context) GetPrice(op opcode.Opcode, parameter []byte) int64 {
|
|
return fee.Opcode(ic.baseExecFee, op)
|
|
}
|