{"id":20278573,"url":"https://github.com/masdxi/right-to-left-attack-solidity","last_synced_at":"2026-05-19T05:41:51.071Z","repository":{"id":118371870,"uuid":"478088300","full_name":"MASDXI/right-to-left-attack-solidity","owner":"MASDXI","description":"An example of right to left attack on smart contract","archived":false,"fork":false,"pushed_at":"2022-04-28T09:41:09.000Z","size":166,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T10:41:57.961Z","etag":null,"topics":["rtlo","security","smart-contracts","solidity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MASDXI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-05T10:58:45.000Z","updated_at":"2024-10-05T03:17:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"df3f504d-4a12-47f7-8191-d9a80e1347cc","html_url":"https://github.com/MASDXI/right-to-left-attack-solidity","commit_stats":null,"previous_names":["masdxi/right-to-left-attack-solidity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MASDXI/right-to-left-attack-solidity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASDXI%2Fright-to-left-attack-solidity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASDXI%2Fright-to-left-attack-solidity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASDXI%2Fright-to-left-attack-solidity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASDXI%2Fright-to-left-attack-solidity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MASDXI","download_url":"https://codeload.github.com/MASDXI/right-to-left-attack-solidity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MASDXI%2Fright-to-left-attack-solidity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007627,"owners_count":26084336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rtlo","security","smart-contracts","solidity"],"created_at":"2024-11-14T13:24:10.727Z","updated_at":"2025-10-11T15:43:49.578Z","avatar_url":"https://github.com/MASDXI.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Right to left override contract\n\nExplain [New Language, Same old mistake](https://coinsbench.com/the-new-language-but-the-old-mistake-33831bfce25e)  \nTutorial using Hardhat(Buidler) to complie, deploy and automated unit tests Solidity smart contract.  \nyou can use this project for learning\nTo run these tutorials, you must have the following installed:\n\n- [nodejs](https://nodejs.org/en/)\n\n- [nvm](https://github.com/nvm-sh/nvm)\n\n```bash\n$ yarn install\n```\n\nto compile your smart contract to get an ABI and artifact of a smart contract.\n\n```bash\n$ yarn compile\n```\n\nfor a unit testing smart contract using the command line.\n\n```\n$ yarn test:guessnumber\n```\n\nexpecting `guess-number.js` result.\n\n```bash\n$ npx hardhat test test/guess-number.test.js\n\n\n  GuessTheNumber\n    ✔ Guess should be failed\n    1) Guess should be success\n    ✔ getValue initialized contract balance\n    ✔ getValue after someone guess the number\n\n\n  3 passing (247ms)\n  1 failing\n\n  1) GuessTheNumber\n       Guess should be success:\n     AssertionError: Expected event \"success\" to be emitted, but it wasn't\n  \n\n\n\nerror Command failed with exit code 1.\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\n\n```\n\nafter testing if you want to deploy the contract using the command line.\n\n```bash\n\n$ yarn rpc\n$ yarn exploit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasdxi%2Fright-to-left-attack-solidity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasdxi%2Fright-to-left-attack-solidity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasdxi%2Fright-to-left-attack-solidity/lists"}