Skip to content

Commit 1e3f54e

Browse files
committed
nolus fix
1 parent fb13f5d commit 1e3f54e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/adaptors/nolus-protocol/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ const queryContract = async function (contract, data) {
5050
}
5151
let encodedData = Buffer.from(data).toString('base64');
5252
let endpoint = `${api}/cosmwasm/wasm/v1/contract/${contract}/smart/${encodedData}`
53-
return await await utils.getData(endpoint)
53+
const response = await fetch(endpoint)
54+
const out = await response.json()
55+
return out
5456
}
5557

5658
const getApy = async () => {

0 commit comments

Comments
 (0)