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

Function deploy

contracts/dpor/rnode/rnode_test.go:32–40  ·  view source on GitHub ↗
(prvKey *ecdsa.PrivateKey, backend *backends.SimulatedBackend)

Source from the content-addressed store, hash-verified

30)
31
32func deploy(prvKey *ecdsa.PrivateKey, backend *backends.SimulatedBackend) (common.Address, *rnode.Rnode) {
33 deployTransactor := bind.NewKeyedTransactor(prvKey)
34 add, _, instance, err := rnode.DeployRnode(deployTransactor, backend)
35 if err != nil {
36 log.Fatal("DeployReward is error :", "error is", err)
37 }
38 return add, instance
39
40}
41
42func TestRNodeJoinRNode(t *testing.T) {
43 // deploy contract

Callers 10

TestRNodeJoinRNodeFunction · 0.70
TestRNodeNotEnoughInvestFunction · 0.70
TestRNodeJoinRNodeTwiceFunction · 0.70
TestRNodeMultiRNodesFunction · 0.70
TestRNodeThresholdFunction · 0.70
TestRefundFunction · 0.70
TestRefundAllFunction · 0.70

Calls 1

FatalMethod · 0.65

Tested by

no test coverage detected