use of io.nem.symbol.sdk.api.StateProofService in project nem2-sdk-java by nemtech.
the class AAASetupIntegrationTest method createMultisigAccountBondedUsingNemesis.
@Test
@Order(7)
void createMultisigAccountBondedUsingNemesis() {
Account multisig = config().getNemesisAccount8();
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
MultisigAccountInfo info = helper().createMultisigAccountBonded(type, multisig, config().getNemesisAccount9(), config().getNemesisAccount10());
StateProofService service = new StateProofServiceImpl(repositoryFactory);
StateMerkleProof<MultisigAccountInfo> proof = get(service.multisig(info));
Assertions.assertTrue(proof.isValid());
}
use of io.nem.symbol.sdk.api.StateProofService in project nem2-sdk-java by nemtech.
the class AAASetupIntegrationTest method createMultisigAccountCompleteUsingNemesis.
@Test
@Order(6)
void createMultisigAccountCompleteUsingNemesis() {
Account multisig = config().getNemesisAccount8();
System.out.println(multisig.getAddress().plain());
RepositoryFactory repositoryFactory = getRepositoryFactory(DEFAULT_REPOSITORY_TYPE);
MultisigAccountInfo info = helper().createMultisigAccountComplete(type, multisig, config().getNemesisAccount9(), config().getNemesisAccount10());
StateProofService service = new StateProofServiceImpl(repositoryFactory);
StateMerkleProof<MultisigAccountInfo> proof = get(service.multisig(info));
Assertions.assertTrue(proof.isValid());
}
Aggregations