Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: net.corda.core.contracts.AttachmentResolutionException #47

Open
adelrustum opened this issue Aug 23, 2019 · 0 comments
Open

Error: net.corda.core.contracts.AttachmentResolutionException #47

adelrustum opened this issue Aug 23, 2019 · 0 comments

Comments

@adelrustum
Copy link

To reproduce the error:

  1. Clone this repository.
  2. Checkout the token-template branch
  3. Run the below test using ./gradlew test
public class FlowTests {
    private final MockNetwork network = new MockNetwork(ImmutableList.of(
            "com.template.contracts", "com.template.flows",
            "com.r3.corda.lib.tokens.money",
            "com.r3.corda.lib.tokens.contracts",
            "com.r3.corda.lib.tokens.workflows",
            "com.r3.corda.lib.tokens.testing"));
    private final StartedMockNode exchangeNode = network.createNode();
    private final Party exchange = exchangeNode.getInfo().getLegalIdentities().get(0);

    @Before
    public void setup() {
        network.runNetwork();
    }

    @After
    public void tearDown() {
        network.stopNodes();
    }

    @Test
    public void dummyTest() throws ExecutionException, InterruptedException {
        ExampleFlowWithFixedToken issueFlow = new ExampleFlowWithFixedToken("USD", 1000L, exchange);
        Future<SignedTransaction> future = exchangeNode.startFlow(issueFlow);
        network.runNetwork();
        SignedTransaction tx = future.get();
        System.out.print(tx);
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant