MCPcopy Create free account
hub / github.com/DNAProject/DNA / NewNeovmInvokeTransaction

Function NewNeovmInvokeTransaction

http/base/common/common.go:434–440  ·  view source on GitHub ↗
(gasPrice, gasLimit uint64, contractAddress common.Address, params []interface{})

Source from the content-addressed store, hash-verified

432}
433
434func NewNeovmInvokeTransaction(gasPrice, gasLimit uint64, contractAddress common.Address, params []interface{}) (*types.MutableTransaction, error) {
435 invokeCode, err := cutils.BuildNeoVMInvokeCode(contractAddress, params)
436 if err != nil {
437 return nil, err
438 }
439 return NewSmartContractTransaction(gasPrice, gasLimit, invokeCode)
440}
441
442func NewSmartContractTransaction(gasPrice, gasLimit uint64, invokeCode []byte) (*types.MutableTransaction, error) {
443 invokePayload := &payload.InvokeCode{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected