@aurigami/sdk 1.17.0 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.17.0",
2
+ "version": "1.17.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import axios from 'axios';
2
2
 
3
- const AURORA_API_BASE_URL = 'https://api.aurorascan.dev/api';
3
+ const AURORA_API_BASE_URL = 'https://explorer.mainnet.aurora.dev/api';
4
4
 
5
5
  export async function getQuery(
6
6
  module: string,
@@ -169,7 +169,7 @@ export async function getBlockBeforeTimestamp(provider: Provider, timestamp: num
169
169
 
170
170
  // In case the API return `Block timestamp too far in the future`
171
171
  // use the last block number
172
- return parseInt(result) || (await provider.getBlockNumber());
172
+ return parseInt(result.blockNumber) || (await provider.getBlockNumber());
173
173
  }
174
174
 
175
175
  export function devLog(message?: any, ...optionalParams: any[]): void {