Skip to content

Commit

Permalink
adding blockNumber to subscribe (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleyter93 authored Jan 5, 2024
1 parent abbcd9e commit fada470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/rifWalletServices/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsksmart/rif-wallet-services",
"version": "1.2.1",
"version": "1.2.2",
"description": "RIF Wallet Services library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions packages/rifWalletServices/src/RifWalletServicesSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class RifWalletServicesSocket
this.rifWalletServicesUrl = rifWalletServicesUrl
}

connect(address: string, chainId: number, headers: Header) {
connect(address: string, chainId: number, headers: Header, blockNumber: string = '0') {
try {
const socket = io(this.rifWalletServicesUrl, {
path: '/ws',
Expand All @@ -41,7 +41,8 @@ export class RifWalletServicesSocket

socket.emit('subscribe', {
address,
chainId
chainId,
blockNumber
})
})

Expand Down

0 comments on commit fada470

Please sign in to comment.