Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n-bhasin/advancesmartcontract-assemblyloop
https://github.com/n-bhasin/advancesmartcontract-assemblyloop
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/n-bhasin/advancesmartcontract-assemblyloop
- Owner: n-bhasin
- License: mit
- Created: 2020-07-13T23:37:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T03:18:51.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T00:45:47.005Z (almost 2 years ago)
- Language: JavaScript
- Size: 782 KB
- Stars: 0
- Watchers: 1
- 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
- fixed buy adding the assemblycode
1. add a test case to verify the result for countBitSetAsm(0)
- added in testFile
1. commit your changes to github and submit your github url