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

Function is_rnode

contracts/dpor/rnode/tests/test_rnode.py:131–138  ·  view source on GitHub ↗
(addr, contract_instance)

Source from the content-addressed store, hash-verified

129
130
131def is_rnode(addr, contract_instance):
132 contract = contract_instance
133 cf.cpc.defaultAccount = addr
134 result = contract.functions.isRnode(addr).call({"from": addr})
135 print("is rnode: ", result)
136 # print("tx hash: ", tx_hash)
137 # tx_receipt = cf.cpc.waitForTransactionReceipt(tx_hash)
138 # print("tx receipt: ", tx_receipt)
139
140
141def test_set_period(addr, contract_instance, period):

Callers 5

test_case_1Function · 0.85
test_case_2Function · 0.85
test_case_3Function · 0.85
test_case_4Function · 0.85
test_case_5Function · 0.85

Calls 1

callMethod · 0.45

Tested by

no test coverage detected