make field address getVotingInfo string

This commit is contained in:
TheJuze
2023-10-02 10:36:14 +03:00
parent e734e5e7e9
commit 4bb4798666
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.89-rc16",
"version": "0.19.89-rc21",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@orionprotocol/sdk",
"version": "0.19.89-rc16",
"version": "0.19.89-rc21",
"hasInstallScript": true,
"license": "ISC",
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.19.89-rc20",
"version": "0.19.89-rc21",
"description": "Orion Protocol SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",

View File

@@ -118,7 +118,7 @@ class IntegratorService {
return BigNumber(amount).dividedBy(this.getK(timestamp));
}
readonly getVotingInfo = (userAddress: number) => {
readonly getVotingInfo = (userAddress: string) => {
return fetchWithValidation(this.apiUrl, votingInfoResponseSchema, {
method: 'POST',
body: this.makeRPCPayload({