{"id":22766689,"url":"https://github.com/vinhyenvodoi98/smartcontract-unit-testing","last_synced_at":"2025-03-30T10:42:33.892Z","repository":{"id":44978233,"uuid":"193010859","full_name":"vinhyenvodoi98/Smartcontract-Unit-Testing","owner":"vinhyenvodoi98","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T19:44:57.000Z","size":23250,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-05T12:34:18.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vinhyenvodoi98.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}},"created_at":"2019-06-21T01:41:06.000Z","updated_at":"2020-09-04T07:47:35.000Z","dependencies_parsed_at":"2023-01-26T10:00:40.031Z","dependency_job_id":null,"html_url":"https://github.com/vinhyenvodoi98/Smartcontract-Unit-Testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhyenvodoi98%2FSmartcontract-Unit-Testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhyenvodoi98%2FSmartcontract-Unit-Testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhyenvodoi98%2FSmartcontract-Unit-Testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinhyenvodoi98%2FSmartcontract-Unit-Testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinhyenvodoi98","download_url":"https://codeload.github.com/vinhyenvodoi98/Smartcontract-Unit-Testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246307932,"owners_count":20756478,"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","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":[],"created_at":"2024-12-11T13:14:19.624Z","updated_at":"2025-03-30T10:42:33.875Z","avatar_url":"https://github.com/vinhyenvodoi98.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Run loom\n\n    ./loom run\n\nCreate contract by this command\n\n    yarn truffle create contract DappToken\n\nDeploy the ERC20 token contract to Testrpc\n\n    yarn truffle migrate\n\nor\n\n    yarn truffle deploy -remove --network loom_dapp_chain\n\nCreate a test .js file for this contract.\n\n    yarn truffle create test fixedsupplytoken\n\nRun test\n\nit run test in network 'test' when run **yarn truffle test** in version 4.1.13\n\n    yarn truffle test ./test/fixedsupplytoken.js\n\nsetup network test\n\n    yarn truffle test --network loom_dapp_chain\n\nHave error\nerror contain revert when run in network loom_dapp_chain\n\nError: Number can only safely store up to 53 bits\n\nin truffle 5.0.0 -\u003e 5.0.24\n\nLoom using web3js 1.0.0\n\ngoto loom console\n\n    yarn truffle console --network loom_dapp_chain\n\ntruffle \u003e=5.0.0 using web3@1.0.0\n\nrun\n\n    DappToken.deployed().then((instance) =\u003e {tokenInstance = instance})\n\nafter deploy contract seaching **class_defaults** by command `tokenInstance` this address holding all token :\n\n    class_defaults:\n      { from: '0x917b7288EAe1bBE3b08d5503A209fcf8106D341d',\n        gas: 6721975,\n        gasPrice: 20000000000 },\n\ntesting transfer\n\n    tokenInstance.transfer(account2.address , 1, {from : account1})\n\nerrer with\n\n    tokenInstance.approve(spendingAccount.address, 10 ,{from : fromAccount.address});\n\n**Thrown:**\n**Error: Failed to commit Tx: invalid public key leght**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinhyenvodoi98%2Fsmartcontract-unit-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinhyenvodoi98%2Fsmartcontract-unit-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinhyenvodoi98%2Fsmartcontract-unit-testing/lists"}