klaytn / caver-js

Official caver-js repository
GNU Lesser General Public License v3.0
114 stars 75 forks source link

Kaikas pop-up causes page refresh when running on remote server #578

Closed elliotwoods closed 2 years ago

elliotwoods commented 2 years ago

When deploying an app that uses Kaikas wallet to an online server, a new behavior appears which is not present when running the web app on localhost.

Specifically, a call to await caver.klay.signTransaction(transaction); will cause the page to refresh.

This behavior can be seen at http://toitoitoi.herokuapp.com/redeem.html

If you connect to wallet and then type a key into the box (try any random key) and select Redeem, the code will get here:

image

At this point the Kaikas pop-up appears, but the page itself refreshes (so the system fails since it's reset). Tested on Chrome and Edge.

The system works fine when running a local node.js server.

jimni1222 commented 2 years ago

Hi, Thank you for posting an issue. This seems like a Kaikas issue not caver-js. Can you inquire this issue in here?

elliotwoods commented 2 years ago

I fixed the isse. Thanks for quick response