Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wfykitty/assembly-loop
Advance Smart Contract labs
https://github.com/wfykitty/assembly-loop
Last synced: 12 days ago
JSON representation
Advance Smart Contract labs
- Host: GitHub
- URL: https://github.com/wfykitty/assembly-loop
- Owner: wfykitty
- License: mit
- Created: 2020-07-18T21:02:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T03:22:24.000Z (almost 2 years ago)
- Last Synced: 2023-03-05T23:55:57.613Z (almost 2 years ago)
- Language: JavaScript
- Size: 782 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# assembly-loop
Following the steps to complete this exercise:
1. clone this project
```bash
git clone https://github.com/GeorgeBrownCollege-Toronto/Advanced-Smart-Contracts.git ./assembly-loop && cd ./assembly-loop && git filter-branch --prune-empty --subdirectory-filter ./notes/solidity-assembly/lab/assembly-loop HEAD && rm -rf ./.git
```
^^^ Stack Overflow : [https://stackoverflow.com/a/11835214](https://stackoverflow.com/a/11835214)
1. install packages: npm install
1. run the test: npm test
1. the test should fail the gas test
1. fix the failed test case by updating the BitWise.sol contract
- replace the logic in the countBitSetAsm() with inline assembly logic
1. add a test case to verify the result for countBitSetAsm(0)
1. commit your changes to github and submit your github url