@exodus/ethereum-api 4.0.8 → 5.0.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "4.0.8",
3
+ "version": "5.0.0",
4
4
  "description": "Ethereum Api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -36,5 +36,5 @@
36
36
  "devDependencies": {
37
37
  "@exodus/models": "^8.10.4"
38
38
  },
39
- "gitHead": "a5853f4c76aafa392801b07345d2af09a6a60dd3"
39
+ "gitHead": "466d8b27f9824dae392e2e9a466ae62ed39b7c12"
40
40
  }
@@ -134,7 +134,7 @@ export function create(defaultURL, ensAssetName) {
134
134
  return requestWithRetry('proxy', { method: 'eth_getCode', address, tag })
135
135
  },
136
136
 
137
- async getStorageAt({ address, slot, tag = 'latest' }) {
137
+ async getStorageAt(address, slot, tag = 'latest') {
138
138
  return requestWithRetry('proxy', { method: 'eth_getStorageAt', address, slot, tag })
139
139
  },
140
140
 
@@ -221,7 +221,7 @@ export default class ClarityServer extends EventEmitter {
221
221
  return this.buildRequest({ method: 'eth_getTransactionReceipt', params: [txhash] })
222
222
  }
223
223
 
224
- ethCallRequest(data, tag) {
224
+ ethCallRequest(data, tag = 'latest') {
225
225
  return this.buildRequest({ method: 'eth_call', params: [data, tag] })
226
226
  }
227
227