icondev

> hyperconnect the world _

ICON is a scalable smart contract enabled blockchain platform with a long-term goal of interoperability between enterprise and public blockchains. Our goal is to Hyperconnect the World, and by combining groundbreaking technology, a strong community, and relentless growth strategies we believe this goal is reachable.

Get Started     Subscribe to our mailing list
Ask A Question

Questions

1

ICONex Chrome Connect not answering

Hello, Recently, my ICONex Chrome Connect stopped working and I cannot figure the reason why. I'm using the ICONex Chrome Connect demo (https://github.com/icon-project/iconex_chrome_extension/blob/master/docs/iconex_connect/iconex_connect_sample.html) and it doesn't work for me. Here are the steps for reproducing the bug: - Google Chrome x64, latest version (75.0.3770.100) - ICONex: Version 1.0.3.4, No particular settings, **isDev** is not set, I'm using the mainnet endpoint. - I'm using a localhost HTTP Server that serves iconex_connect_sample.html - I click on REQUEST_ADDRESS button, and retrieve my wallet address **correctly** using the ICONex popup. - I scroll at the bottom of the page and click on REQUEST_SIGNING - A blank popup appears with nothing inside ![https://i.imgur.com/KOwmy8U.png](https://i.imgur.com/KOwmy8U.png) - When I press F12 for opening the console, here's the error stacktrace I have : ``` uncaught at isLoggedInFunc TypeError: Cannot read property 'hash' of undefined at MyWallet._this.onlyIcxTab (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:143369:60) at MyWallet.render (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:143454:27) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:89515:30) at ReactCompositeComponentWrapper._renderValidatedComponent (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:89538:32) at ReactCompositeComponentWrapper.performInitialMount (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:89078:30) at ReactCompositeComponentWrapper.mountComponent (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:88974:21) at Object.mountComponent (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:94896:35) at ReactCompositeComponentWrapper.performInitialMount (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:89087:34) at ReactCompositeComponentWrapper.mountComponent (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:88974:21) at Object.mountComponent (chrome-extension://flpiciilemghbmfalicajoolhkkenfel/static/js/popup.bundle.js:94896:35) log @ popup.bundle.js:114405 ``` Furthermore, if I click on "ICX Transfer" radio button and click on REQUEST_JSON-RPC, nothing happens. ![https://i.imgur.com/S2kq36D.png](https://i.imgur.com/S2kq36D.png) There's no error in the console when I click on that button. Would you have an idea how to fix it please ? Cheers EDIT: - Clicking on REQUEST_HAS_ACCOUNT returns true - Clicking on REQUEST_HAS_ADDRESS returns false => It looks to work fine for everything except transaction signing.

iconex

Posted by Spl3en 23 days ago

4
ANSWERED

Fail to launch tests on samples

Hello, I'm trying to write unit tests for my SCORE, but I'm failing to understand how it works. I have downloaded the IRC2-Token sample available on the official GitHub repository : https://github.com/icon-project/samples/tree/master/irc2_token When I launch the t-bears command "test", here's the result : ``` spl3en@Entropie WSL /mnt/d/Work/ICON/gigayaya/irc2_token $ tbears test sample_token/ EEEEEEE ====================================================================== ERROR: test_call_balanceOf (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ====================================================================== ERROR: test_call_decimals (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ====================================================================== ERROR: test_call_name (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ====================================================================== ERROR: test_call_symbol (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ====================================================================== ERROR: test_call_totalSupply (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ====================================================================== ERROR: test_score_update (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ====================================================================== ERROR: test_token_transfer (sample_token.tests.test_integrate_sample_token.TestSampleToken) ---------------------------------------------------------------------- Traceback (most recent call last): File "/mnt/d/Work/ICON/gigayaya/irc2_token/sample_token/tests/test_integrate_sample_token.py", line 23, in setUp super().setUp() File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 104, in setUp self._genesis_invoke(genesis_accounts) File "/mnt/d/Work/ICON/gigayaya/BattleBombRoyale_SCORE/venv/lib/python3.7/site-packages/tbears-1.2.0-py3.7.egg/tbears/libs/icon_integrate_test.py", line 170, in _genesis_invoke self.icon_service_engine.commit(block) TypeError: commit() missing 2 required positional arguments: 'instant_block_hash' and 'block_hash' ---------------------------------------------------------------------- Ran 7 tests in 0.260s FAILED (errors=7) (venv) ``` It looks like an incompatibility between tbears and icon-service. Any idea how to pass the sample code tests successfully please ? Thanks! Here are my packages versions : ``` tbears==1.2.0 iconcommons==1.0.5.2 iconrpcserver==1.2.10 iconsdk==1.0.9 iconservice==1.3.0 ```

Posted by Spl3en about a month ago