internal async Task <TransactionResult> ApproveWithTesterAsync(
     ContractTester <BasicContractZeroTestAElfModule> tester, Address contractAddress, Hash proposalId)
 {
     return(await tester.ExecuteContractWithMiningAsync(contractAddress,
                                                        nameof(AuthorizationContractContainer.AuthorizationContractStub.Approve), proposalId));
 }
Exemplo n.º 2
0
 public static async Task <TransactionResult> ExecuteConsensusContractMethodWithMiningAsync(
     this ContractTester <DPoSSideChainTestAElfModule> contractTester, string methodName, IMessage input)
 {
     return(await contractTester.ExecuteContractWithMiningAsync(contractTester.GetConsensusContractAddress(),
                                                                methodName, input));
 }