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

Function InvokeNeoVMContract

cmd/utils/gas.go:639–650  ·  view source on GitHub ↗

Invoke neo vm smart contract. if isPreExec is true, the invoke will not really execute

(
	gasPrice,
	gasLimit uint64,
	signer *account.Account,
	smartcodeAddress common.Address,
	params []interface{})

Source from the content-addressed store, hash-verified

637
638//Invoke neo vm smart contract. if isPreExec is true, the invoke will not really execute
639func InvokeNeoVMContract(
640 gasPrice,
641 gasLimit uint64,
642 signer *account.Account,
643 smartcodeAddress common.Address,
644 params []interface{}) (string, error) {
645 tx, err := httpcom.NewNeovmInvokeTransaction(gasPrice, gasLimit, smartcodeAddress, params)
646 if err != nil {
647 return "", err
648 }
649 return InvokeSmartContract(signer, tx)
650}
651
652//Invoke wasm vm smart contract. if isPreExec is true, the invoke will not really execute
653func InvokeWasmVMContract(

Callers 1

invokeContractFunction · 0.92

Calls 1

InvokeSmartContractFunction · 0.85

Tested by

no test coverage detected