MCPcopy Create free account
hub / github.com/CPChain/chain / transaction

Function transaction

core/tx_pool_test.go:73–75  ·  view source on GitHub ↗
(nonce uint64, gaslimit uint64, key *ecdsa.PrivateKey)

Source from the content-addressed store, hash-verified

71}
72
73func transaction(nonce uint64, gaslimit uint64, key *ecdsa.PrivateKey) *types.Transaction {
74 return pricedTransaction(nonce, gaslimit, big.NewInt(1), key)
75}
76
77func pricedTransaction(nonce uint64, gaslimit uint64, gasprice *big.Int, key *ecdsa.PrivateKey) *types.Transaction {
78 tx, _ := types.SignTx(types.NewTransaction(nonce, common.Address{}, big.NewInt(100), gaslimit, gasprice, nil), types.HomesteadSigner{}, key)

Calls 1

pricedTransactionFunction · 0.85

Tested by

no test coverage detected