Skip to content

Commit

Permalink
fix: missed aepp id in wallet connect handler
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Apr 26, 2021
1 parent e984f3b commit 1ed9284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/aepp-wallet-communication/rpc/rpc-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import { sendMessage, message, isValidAccounts } from '../helpers'
* @return {Object}
*/
export default stampit({
init ({ name, networkId, icons, connection, handlers: [onMessage, onDisconnect] }) {
init ({ id, name, networkId, icons, connection, handlers: [onMessage, onDisconnect] }) {
this.id = id
this.connection = connection
this.info = { name, networkId, icons }
// {
Expand Down
1 change: 1 addition & 0 deletions src/utils/aepp-wallet-communication/rpc/wallet-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export default Ae.compose(AccountMultiple, {
// @TODO detect if aepp has some history based on origin????: if yes use this instance for connection
const id = uuid()
this.rpcClients[id] = RpcClient({
id,
info: { status: RPC_STATUS.WAITING_FOR_CONNECTION_REQUEST },
connection: clientConnection,
handlers: [handleMessage(this, id), this.onDisconnect]
Expand Down

0 comments on commit 1ed9284

Please sign in to comment.