NewNativeInvokeTransaction return native contract invoke transaction
(gasPirce, gasLimit uint64, contractAddress common.Address, version byte,
method string, params []interface{})
| 423 | |
| 424 | //NewNativeInvokeTransaction return native contract invoke transaction |
| 425 | func NewNativeInvokeTransaction(gasPirce, gasLimit uint64, contractAddress common.Address, version byte, |
| 426 | method string, params []interface{}) (*types.MutableTransaction, error) { |
| 427 | invokeCode, err := cutils.BuildNativeInvokeCode(contractAddress, version, method, params) |
| 428 | if err != nil { |
| 429 | return nil, err |
| 430 | } |
| 431 | return NewSmartContractTransaction(gasPirce, gasLimit, invokeCode) |
| 432 | } |
| 433 | |
| 434 | func NewNeovmInvokeTransaction(gasPrice, gasLimit uint64, contractAddress common.Address, params []interface{}) (*types.MutableTransaction, error) { |
| 435 | invokeCode, err := cutils.BuildNeoVMInvokeCode(contractAddress, params) |
no test coverage detected