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

Function defaultTestKey

types/transaction_test.go:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func defaultTestKey() (*ecdsa.PrivateKey, common.Address) {
83 key, _ := crypto.HexToECDSA("45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8")
84 addr := crypto.PubkeyToAddress(key.PublicKey)
85 return key, addr
86}
87
88func TestRecipientEmpty(t *testing.T) {
89 _, addr := defaultTestKey()

Callers 3

TestRecipientEmptyFunction · 0.85
TestRecipientNormalFunction · 0.85
TestChainIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected