argent-x icon indicating copy to clipboard operation
argent-x copied to clipboard

Error when adding a new token to wallet

Open swan-of-bodom opened this issue 2 years ago • 3 comments

Hi! I keep getting this error when adding a new token to the Argentx wallet:

image

Any idea what could be happening?

swan-of-bodom avatar Sep 23 '22 21:09 swan-of-bodom

pasting the log here:

"stack": "U: Error at pc=0:25:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:95)\nUnknown location (pc=0:47)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:121)\n\nError in the called contract (0x14be76cce31783fab1cfb4c8be244e38c0465f7cfec9cdd150705cce919a290):\nEntry point 0x2e4263afad30923c891518314c3c95dbe830a16874e8abc5777a9a20b54c76e not found in contract with class hash 0x60c4cefed931d32c11d4661a31df251b5a50217f11e37a51ce66b6e0602709a.\n at re.<anonymous> (chrome-extension://dlcobpjiigpikoobohmabehhmhfoodbb/main.js:109:130316)\n at V (chrome-extension://dlcobpjiigpikoobohmabehhmhfoodbb/main.js:109:127035)\n at Object.next (chrome-extension://dlcobpjiigpikoobohmabehhmhfoodbb/main.js:109:126304)\n at fe (chrome-extension://dlcobpjiigpikoobohmab'ehhmhfoodbb/main.js:109:125835)", "message": "Error at pc=0:25:\nGot an exception while executing a hint.\nCairo traceback (most recent call last):\nUnknown location (pc=0:95)\nUnknown location (pc=0:47)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:142)\nUnknown location (pc=0:121)\n\nError in the called contract (0x14be76cce31783fab1cfb4c8be244e38c0465f7cfec9cdd150705cce919a290):\nEntry point 0x2e4263afad30923c891518314c3c95dbe830a16874e8abc5777a9a20b54c76e not found in contract with class hash 0x60c4cefed931d32c11d4661a31df251b5a50217f11e37a51ce66b6e0602709a.", "name": "U", "errorCode": "StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT" } No stack trace

I'm using ArgentX on Brave browser

swan-of-bodom avatar Sep 23 '22 21:09 swan-of-bodom

The token you added: https://testnet.starkscan.co/contract/0x14be76cce31783fab1cfb4c8be244e38c0465f7cfec9cdd150705cce919a290#read-contract

doesn't implement the expected ERC20 interface instead of implementing balanceOf it implements balance_of

we should check that and deny adding these kind of tokens

janek26 avatar Sep 24 '22 09:09 janek26

Great to know. Thanks!

swan-of-bodom avatar Sep 24 '22 15:09 swan-of-bodom