Loading
fix(stake.libre): use global ids for every scope in the stake table #1
What does this MR do?
Use global ids for stake table to avoid duplicated ids
Related issues
- Reported in mining.libre contract
Steps to test:
- Compile the contract: run the following command in the root folder
./docker-build.sh - Validate sha256 of the wasm file is:
4c490735f6357929da822e4889fa8b2fdadc59895048720be3e6e82135bd920d. You can get the sha256 of a file by running: On Mac:shasum -a 256 --t <file_path>; On Linux:sha256sum <file_path> - If code changes looks good and wasm hash does match, update the contract.
- Make a stake for 1 day. Store this stake index.
- Claim the stake.
- Make sure your stake got moved to
completedscope. - Make a new stake and validate your stake index is greater than the stake you got on step 4.
Edited by Leister Alvarado