tutus-chain/pkg/core/interop/gas_price.go

13 lines
351 B
Go
Executable File

package interop
import (
"git.marketally.com/tutus-one/tutus-chain/pkg/core/fee"
"git.marketally.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)
}