(gasPrice, gasLimit uint64, invokeCode []byte)
| 440 | } |
| 441 | |
| 442 | func NewSmartContractTransaction(gasPrice, gasLimit uint64, invokeCode []byte) (*types.MutableTransaction, error) { |
| 443 | invokePayload := &payload.InvokeCode{ |
| 444 | Code: invokeCode, |
| 445 | } |
| 446 | tx := &types.MutableTransaction{ |
| 447 | GasPrice: gasPrice, |
| 448 | GasLimit: gasLimit, |
| 449 | TxType: types.InvokeNeo, |
| 450 | Nonce: uint32(time.Now().Unix()), |
| 451 | Payload: invokePayload, |
| 452 | Sigs: nil, |
| 453 | } |
| 454 | return tx, nil |
| 455 | } |
| 456 | |
| 457 | //BuildNeoVMInvokeCode build NeoVM Invoke code for params |
| 458 | func BuildNeoVMInvokeCode(smartContractAddress common.Address, params []interface{}) ([]byte, error) { |
no outgoing calls
no test coverage detected