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

CreateClaimableBalanceResult balanceID is always null #40

Closed
jopmiddelkamp opened this issue Mar 30, 2022 · 2 comments
Closed

CreateClaimableBalanceResult balanceID is always null #40

jopmiddelkamp opened this issue Mar 30, 2022 · 2 comments

Comments

@jopmiddelkamp
Copy link
Contributor

jopmiddelkamp commented Mar 30, 2022

The code to reproduce the issue.

final sdk = StellarSDK.TESTNET;
final network = Network.TESTNET;

final sourceKeyPair = KeyPair.fromSecretSeed(
  "SAW74SJ4ERDAKW4GSL63ASQAN7EVFCI4A44JMRKPPGAP6ROGPBL6SN3J",
  // GAS4N4UW4CU24AIVQIIGDW6ENUYZUVZ7Z3MH5GVYGQHVKXLJ2GBDP6RQ
);

await FriendBot.fundTestAccount(sourceKeyPair.accountId);

final createClaimableBalanceBuilder = CreateClaimableBalanceOperationBuilder(
  [
    Claimant(
      sourceKeyPair.accountId,
      Claimant.predicateNot(
        Claimant.predicateBeforeRelativeTime(60),
      ),
    )
  ],
  Asset.NATIVE,
  "100",
);

final sourceAccount = await sdk.accounts.account(
  sourceKeyPair.accountId,
);

final transactionBuilder = TransactionBuilder(sourceAccount)
  ..addOperation(createClaimableBalanceBuilder.build());

final transaction = transactionBuilder.build()..sign(sourceKeyPair, network);

final result = await sdk.submitTransaction(transaction);
@jopmiddelkamp jopmiddelkamp reopened this Apr 1, 2022
@jopmiddelkamp jopmiddelkamp changed the title RevokeSponsorshipOperationBuilder: accountId can not be null CreateClaimableBalanceResult balanceID is always null Apr 1, 2022
@christian-rogobete
Copy link
Contributor

Hello @jopmiddelkamp,
thank you for adding this issue. I will have a look to it at the beginning of next week.
Best regards

christian-rogobete added a commit that referenced this issue Apr 6, 2022
@christian-rogobete
Copy link
Contributor

fixed in release 1.3.1

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

2 participants