Closed shekohex closed 4 years ago
Ok, I reproduced in client tests
➜ client git:(fix-node-test-client) cart --release
Compiling sunshine-bounty-client v0.2.0 (/Users/4meta5/sunshine-protocol/sunshine-node/client/client)
Compiling test-client v0.1.0 (/Users/4meta5/sunshine-protocol/sunshine-node/bin/client)
Finished release [optimized] target(s) in 45.74s
Running /Users/4meta5/sunshine-protocol/sunshine-node/target/release/deps/sunshine_bounty_client-c6982707b32b4a11
running 5 tests
test org::tests::simple_test ... ok
test bounty::tests::simple_test ... ok
test bounty::tests::post_bounty_test ... ok
test org::tests::register_flat_org_test ... ok
test bounty::tests::get_bounties_test ... FAILED
failures:
---- bounty::tests::get_bounties_test stdout ----
thread 'bounty::tests::get_bounties_test' panicked at 'assertion failed: `(left == right)`
left: `12116433537164092995`,
right: `1`', client/client/src/bounty/mod.rs:268:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
What is wrong?
When I try to list open bounties using Sunshine CLI shows big ids that seem to be not correct.
For example, a
BountyId
that is12116433537164092995
!Steps to Reproduce
Using Sunshine CLI (the master branch)
Run a Clean node.
Run the Node in dev mode locally with RPC open.
Run the CLI and Create your own Key.
Once you have an account created (and minted), List Open Bounties.
you should see
since there is none, let's create one:
Create a new Bounty
This will create a bounty for #108
and you get a wrong IDs