Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Update "Send Native Assets (XLM)" example #299

Open
JellosPorsche opened this issue Jan 10, 2021 · 1 comment
Open

Update "Send Native Assets (XLM)" example #299

JellosPorsche opened this issue Jan 10, 2021 · 1 comment

Comments

@JellosPorsche
Copy link

The "Send Native Assets (XLM)" needs to be updated to

  1. Use the new TransactionBuilder instead of Transaction.Builder
  2. Add Network.UseTestNetwork(); to the example? I get a NoNetworkSelectedException if Network.UseTestNetwork(); isn't present before the transaction.Sign(sourceKeypair); statement.

Thanks for creating and maintaining this library.

@Kirbyrawr
Copy link
Collaborator

Hi, thanks for the issue, you are right i should update it to follow the new structure, i will try to do it soon.

Regarding the network, it's just an example of exactly how to send it but maybe you are right and it should be included!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants