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

Some operations' __equals__ does not include comparison with the source. #483

Closed
overcat opened this issue Jul 20, 2023 · 0 comments · Fixed by #484
Closed

Some operations' __equals__ does not include comparison with the source. #483

overcat opened this issue Jul 20, 2023 · 0 comments · Fixed by #484
Labels

Comments

@overcat
Copy link
Member

overcat commented Jul 20, 2023

What version are you using?

latest code from master branch (0803b98)

What did you do?

  @Test
  public void testClawbackClaimableBalanceOperationNotEqual() {
    String source = "GASOCNHNNLYFNMDJYQ3XFMI7BYHIOCFW3GJEOWRPEGK2TDPGTG2E5EDW";
    String balanceId = "6d6a0c142516a9cc7885a85c5aba3a1f4af5181cf9e7a809ac7ae5e4a58c825f";
    ClawbackClaimableBalanceOperation operation1 = new ClawbackClaimableBalanceOperation.Builder(balanceId).setSourceAccount(source).build();
    ClawbackClaimableBalanceOperation operation2 = new ClawbackClaimableBalanceOperation.Builder(balanceId).build();
    Assert.assertNotEquals(operation1, operation2);
  }

What did you expect to see?

Test passed.

What did you see instead?

Test failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant