@sentio/sdk 2.40.0 → 2.40.1-rc.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.
@@ -189,11 +189,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
189
189
  owner,
190
190
  spender,
191
191
  ]);
192
- const key = makeEthCallKey({
192
+ const ethCallKey = makeEthCallKey({
193
193
  context: ethCallContext,
194
194
  calldata,
195
195
  });
196
- const ret = preparedData.ethCallResults[key];
196
+ const ret = preparedData.ethCallResults[ethCallKey];
197
197
  if (ret) {
198
198
  const result = iface.decodeFunctionResult("allowance", ret).toArray();
199
199
  return result.length == 1 ? result[0] : result;
@@ -222,11 +222,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
222
222
  "function balanceOf(address) view returns (uint256)",
223
223
  ]);
224
224
  const calldata = iface.encodeFunctionData("balanceOf", [account]);
225
- const key = makeEthCallKey({
225
+ const ethCallKey = makeEthCallKey({
226
226
  context: ethCallContext,
227
227
  calldata,
228
228
  });
229
- const ret = preparedData.ethCallResults[key];
229
+ const ret = preparedData.ethCallResults[ethCallKey];
230
230
  if (ret) {
231
231
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
232
232
  return result.length == 1 ? result[0] : result;
@@ -253,11 +253,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
253
253
  "function decimals() view returns (uint8)",
254
254
  ]);
255
255
  const calldata = iface.encodeFunctionData("decimals", []);
256
- const key = makeEthCallKey({
256
+ const ethCallKey = makeEthCallKey({
257
257
  context: ethCallContext,
258
258
  calldata,
259
259
  });
260
- const ret = preparedData.ethCallResults[key];
260
+ const ret = preparedData.ethCallResults[ethCallKey];
261
261
  if (ret) {
262
262
  const result = iface.decodeFunctionResult("decimals", ret).toArray();
263
263
  return result.length == 1 ? result[0] : result;
@@ -281,11 +281,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
281
281
  "function locker() view returns (address)",
282
282
  ]);
283
283
  const calldata = iface.encodeFunctionData("locker", []);
284
- const key = makeEthCallKey({
284
+ const ethCallKey = makeEthCallKey({
285
285
  context: ethCallContext,
286
286
  calldata,
287
287
  });
288
- const ret = preparedData.ethCallResults[key];
288
+ const ret = preparedData.ethCallResults[ethCallKey];
289
289
  if (ret) {
290
290
  const result = iface.decodeFunctionResult("locker", ret).toArray();
291
291
  return result.length == 1 ? result[0] : result;
@@ -307,11 +307,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
307
307
  if (preparedData?.ethCallResults && ethCallContext) {
308
308
  const iface = new Interface(["function name() view returns (string)"]);
309
309
  const calldata = iface.encodeFunctionData("name", []);
310
- const key = makeEthCallKey({
310
+ const ethCallKey = makeEthCallKey({
311
311
  context: ethCallContext,
312
312
  calldata,
313
313
  });
314
- const ret = preparedData.ethCallResults[key];
314
+ const ret = preparedData.ethCallResults[ethCallKey];
315
315
  if (ret) {
316
316
  const result = iface.decodeFunctionResult("name", ret).toArray();
317
317
  return result.length == 1 ? result[0] : result;
@@ -335,11 +335,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
335
335
  "function owner() view returns (address)",
336
336
  ]);
337
337
  const calldata = iface.encodeFunctionData("owner", []);
338
- const key = makeEthCallKey({
338
+ const ethCallKey = makeEthCallKey({
339
339
  context: ethCallContext,
340
340
  calldata,
341
341
  });
342
- const ret = preparedData.ethCallResults[key];
342
+ const ret = preparedData.ethCallResults[ethCallKey];
343
343
  if (ret) {
344
344
  const result = iface.decodeFunctionResult("owner", ret).toArray();
345
345
  return result.length == 1 ? result[0] : result;
@@ -363,11 +363,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
363
363
  "function symbol() view returns (string)",
364
364
  ]);
365
365
  const calldata = iface.encodeFunctionData("symbol", []);
366
- const key = makeEthCallKey({
366
+ const ethCallKey = makeEthCallKey({
367
367
  context: ethCallContext,
368
368
  calldata,
369
369
  });
370
- const ret = preparedData.ethCallResults[key];
370
+ const ret = preparedData.ethCallResults[ethCallKey];
371
371
  if (ret) {
372
372
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
373
373
  return result.length == 1 ? result[0] : result;
@@ -391,11 +391,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
391
391
  "function totalSupply() view returns (uint256)",
392
392
  ]);
393
393
  const calldata = iface.encodeFunctionData("totalSupply", []);
394
- const key = makeEthCallKey({
394
+ const ethCallKey = makeEthCallKey({
395
395
  context: ethCallContext,
396
396
  calldata,
397
397
  });
398
- const ret = preparedData.ethCallResults[key];
398
+ const ret = preparedData.ethCallResults[ethCallKey];
399
399
  if (ret) {
400
400
  const result = iface
401
401
  .decodeFunctionResult("totalSupply", ret)
@@ -429,11 +429,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
429
429
  spender,
430
430
  amount,
431
431
  ]);
432
- const key = makeEthCallKey({
432
+ const ethCallKey = makeEthCallKey({
433
433
  context: ethCallContext,
434
434
  calldata,
435
435
  });
436
- const ret = preparedData.ethCallResults[key];
436
+ const ret = preparedData.ethCallResults[ethCallKey];
437
437
  if (ret) {
438
438
  const result = iface.decodeFunctionResult("approve", ret).toArray();
439
439
  return result.length == 1 ? result[0] : result;
@@ -459,11 +459,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
459
459
  "function burn(uint256) nonpayable returns ()",
460
460
  ]);
461
461
  const calldata = iface.encodeFunctionData("burn", [amount]);
462
- const key = makeEthCallKey({
462
+ const ethCallKey = makeEthCallKey({
463
463
  context: ethCallContext,
464
464
  calldata,
465
465
  });
466
- const ret = preparedData.ethCallResults[key];
466
+ const ret = preparedData.ethCallResults[ethCallKey];
467
467
  if (ret) {
468
468
  const result = iface.decodeFunctionResult("burn", ret).toArray();
469
469
  return result.length == 1 ? result[0] : result;
@@ -493,11 +493,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
493
493
  account,
494
494
  amount,
495
495
  ]);
496
- const key = makeEthCallKey({
496
+ const ethCallKey = makeEthCallKey({
497
497
  context: ethCallContext,
498
498
  calldata,
499
499
  });
500
- const ret = preparedData.ethCallResults[key];
500
+ const ret = preparedData.ethCallResults[ethCallKey];
501
501
  if (ret) {
502
502
  const result = iface
503
503
  .decodeFunctionResult("burnFrom", ret)
@@ -529,11 +529,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
529
529
  spender,
530
530
  subtractedValue,
531
531
  ]);
532
- const key = makeEthCallKey({
532
+ const ethCallKey = makeEthCallKey({
533
533
  context: ethCallContext,
534
534
  calldata,
535
535
  });
536
- const ret = preparedData.ethCallResults[key];
536
+ const ret = preparedData.ethCallResults[ethCallKey];
537
537
  if (ret) {
538
538
  const result = iface
539
539
  .decodeFunctionResult("decreaseAllowance", ret)
@@ -565,11 +565,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
565
565
  spender,
566
566
  addedValue,
567
567
  ]);
568
- const key = makeEthCallKey({
568
+ const ethCallKey = makeEthCallKey({
569
569
  context: ethCallContext,
570
570
  calldata,
571
571
  });
572
- const ret = preparedData.ethCallResults[key];
572
+ const ret = preparedData.ethCallResults[ethCallKey];
573
573
  if (ret) {
574
574
  const result = iface
575
575
  .decodeFunctionResult("increaseAllowance", ret)
@@ -596,11 +596,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
596
596
  "function renounceOwnership() nonpayable returns ()",
597
597
  ]);
598
598
  const calldata = iface.encodeFunctionData("renounceOwnership", []);
599
- const key = makeEthCallKey({
599
+ const ethCallKey = makeEthCallKey({
600
600
  context: ethCallContext,
601
601
  calldata,
602
602
  });
603
- const ret = preparedData.ethCallResults[key];
603
+ const ret = preparedData.ethCallResults[ethCallKey];
604
604
  if (ret) {
605
605
  const result = iface
606
606
  .decodeFunctionResult("renounceOwnership", ret)
@@ -628,11 +628,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
628
628
  "function setLocker(address) nonpayable returns ()",
629
629
  ]);
630
630
  const calldata = iface.encodeFunctionData("setLocker", [_locker]);
631
- const key = makeEthCallKey({
631
+ const ethCallKey = makeEthCallKey({
632
632
  context: ethCallContext,
633
633
  calldata,
634
634
  });
635
- const ret = preparedData.ethCallResults[key];
635
+ const ret = preparedData.ethCallResults[ethCallKey];
636
636
  if (ret) {
637
637
  const result = iface
638
638
  .decodeFunctionResult("setLocker", ret)
@@ -664,11 +664,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
664
664
  recipient,
665
665
  amount,
666
666
  ]);
667
- const key = makeEthCallKey({
667
+ const ethCallKey = makeEthCallKey({
668
668
  context: ethCallContext,
669
669
  calldata,
670
670
  });
671
- const ret = preparedData.ethCallResults[key];
671
+ const ret = preparedData.ethCallResults[ethCallKey];
672
672
  if (ret) {
673
673
  const result = iface
674
674
  .decodeFunctionResult("transfer", ret)
@@ -702,11 +702,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
702
702
  recipient,
703
703
  amount,
704
704
  ]);
705
- const key = makeEthCallKey({
705
+ const ethCallKey = makeEthCallKey({
706
706
  context: ethCallContext,
707
707
  calldata,
708
708
  });
709
- const ret = preparedData.ethCallResults[key];
709
+ const ret = preparedData.ethCallResults[ethCallKey];
710
710
  if (ret) {
711
711
  const result = iface
712
712
  .decodeFunctionResult("transferFrom", ret)
@@ -736,11 +736,11 @@ export class ERC20ContractView extends ContractView<ERC20> {
736
736
  const calldata = iface.encodeFunctionData("transferOwnership", [
737
737
  newOwner,
738
738
  ]);
739
- const key = makeEthCallKey({
739
+ const ethCallKey = makeEthCallKey({
740
740
  context: ethCallContext,
741
741
  calldata,
742
742
  });
743
- const ret = preparedData.ethCallResults[key];
743
+ const ret = preparedData.ethCallResults[ethCallKey];
744
744
  if (ret) {
745
745
  const result = iface
746
746
  .decodeFunctionResult("transferOwnership", ret)
@@ -114,11 +114,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
114
114
  if (preparedData?.ethCallResults && ethCallContext) {
115
115
  const iface = new Interface(["function name() view returns (bytes32)"]);
116
116
  const calldata = iface.encodeFunctionData("name", []);
117
- const key = makeEthCallKey({
117
+ const ethCallKey = makeEthCallKey({
118
118
  context: ethCallContext,
119
119
  calldata,
120
120
  });
121
- const ret = preparedData.ethCallResults[key];
121
+ const ret = preparedData.ethCallResults[ethCallKey];
122
122
  if (ret) {
123
123
  const result = iface.decodeFunctionResult("name", ret).toArray();
124
124
  return result.length == 1 ? result[0] : result;
@@ -142,11 +142,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
142
142
  "function totalSupply() view returns (uint256)",
143
143
  ]);
144
144
  const calldata = iface.encodeFunctionData("totalSupply", []);
145
- const key = makeEthCallKey({
145
+ const ethCallKey = makeEthCallKey({
146
146
  context: ethCallContext,
147
147
  calldata,
148
148
  });
149
- const ret = preparedData.ethCallResults[key];
149
+ const ret = preparedData.ethCallResults[ethCallKey];
150
150
  if (ret) {
151
151
  const result = iface
152
152
  .decodeFunctionResult("totalSupply", ret)
@@ -172,11 +172,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
172
172
  "function decimals() view returns (uint8)",
173
173
  ]);
174
174
  const calldata = iface.encodeFunctionData("decimals", []);
175
- const key = makeEthCallKey({
175
+ const ethCallKey = makeEthCallKey({
176
176
  context: ethCallContext,
177
177
  calldata,
178
178
  });
179
- const ret = preparedData.ethCallResults[key];
179
+ const ret = preparedData.ethCallResults[ethCallKey];
180
180
  if (ret) {
181
181
  const result = iface.decodeFunctionResult("decimals", ret).toArray();
182
182
  return result.length == 1 ? result[0] : result;
@@ -201,11 +201,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
201
201
  "function balanceOf(address) view returns (uint256)",
202
202
  ]);
203
203
  const calldata = iface.encodeFunctionData("balanceOf", [who]);
204
- const key = makeEthCallKey({
204
+ const ethCallKey = makeEthCallKey({
205
205
  context: ethCallContext,
206
206
  calldata,
207
207
  });
208
- const ret = preparedData.ethCallResults[key];
208
+ const ret = preparedData.ethCallResults[ethCallKey];
209
209
  if (ret) {
210
210
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
211
211
  return result.length == 1 ? result[0] : result;
@@ -232,11 +232,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
232
232
  "function symbol() view returns (bytes32)",
233
233
  ]);
234
234
  const calldata = iface.encodeFunctionData("symbol", []);
235
- const key = makeEthCallKey({
235
+ const ethCallKey = makeEthCallKey({
236
236
  context: ethCallContext,
237
237
  calldata,
238
238
  });
239
- const ret = preparedData.ethCallResults[key];
239
+ const ret = preparedData.ethCallResults[ethCallKey];
240
240
  if (ret) {
241
241
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
242
242
  return result.length == 1 ? result[0] : result;
@@ -265,11 +265,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
265
265
  owner,
266
266
  spender,
267
267
  ]);
268
- const key = makeEthCallKey({
268
+ const ethCallKey = makeEthCallKey({
269
269
  context: ethCallContext,
270
270
  calldata,
271
271
  });
272
- const ret = preparedData.ethCallResults[key];
272
+ const ret = preparedData.ethCallResults[ethCallKey];
273
273
  if (ret) {
274
274
  const result = iface.decodeFunctionResult("allowance", ret).toArray();
275
275
  return result.length == 1 ? result[0] : result;
@@ -305,11 +305,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
305
305
  spender,
306
306
  value,
307
307
  ]);
308
- const key = makeEthCallKey({
308
+ const ethCallKey = makeEthCallKey({
309
309
  context: ethCallContext,
310
310
  calldata,
311
311
  });
312
- const ret = preparedData.ethCallResults[key];
312
+ const ret = preparedData.ethCallResults[ethCallKey];
313
313
  if (ret) {
314
314
  const result = iface.decodeFunctionResult("approve", ret).toArray();
315
315
  return result.length == 1 ? result[0] : result;
@@ -341,11 +341,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
341
341
  to,
342
342
  value,
343
343
  ]);
344
- const key = makeEthCallKey({
344
+ const ethCallKey = makeEthCallKey({
345
345
  context: ethCallContext,
346
346
  calldata,
347
347
  });
348
- const ret = preparedData.ethCallResults[key];
348
+ const ret = preparedData.ethCallResults[ethCallKey];
349
349
  if (ret) {
350
350
  const result = iface
351
351
  .decodeFunctionResult("transferFrom", ret)
@@ -374,11 +374,11 @@ export class ERC20BytesContractView extends ContractView<ERC20Bytes> {
374
374
  "function transfer(address,uint256) nonpayable returns (bool)",
375
375
  ]);
376
376
  const calldata = iface.encodeFunctionData("transfer", [to, value]);
377
- const key = makeEthCallKey({
377
+ const ethCallKey = makeEthCallKey({
378
378
  context: ethCallContext,
379
379
  calldata,
380
380
  });
381
- const ret = preparedData.ethCallResults[key];
381
+ const ret = preparedData.ethCallResults[ethCallKey];
382
382
  if (ret) {
383
383
  const result = iface
384
384
  .decodeFunctionResult("transfer", ret)
@@ -168,11 +168,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
168
168
  "function totalSupply() view returns (uint256)",
169
169
  ]);
170
170
  const calldata = iface.encodeFunctionData("totalSupply", []);
171
- const key = makeEthCallKey({
171
+ const ethCallKey = makeEthCallKey({
172
172
  context: ethCallContext,
173
173
  calldata,
174
174
  });
175
- const ret = preparedData.ethCallResults[key];
175
+ const ret = preparedData.ethCallResults[ethCallKey];
176
176
  if (ret) {
177
177
  const result = iface
178
178
  .decodeFunctionResult("totalSupply", ret)
@@ -199,11 +199,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
199
199
  "function balanceOf(address) view returns (uint256)",
200
200
  ]);
201
201
  const calldata = iface.encodeFunctionData("balanceOf", [owner]);
202
- const key = makeEthCallKey({
202
+ const ethCallKey = makeEthCallKey({
203
203
  context: ethCallContext,
204
204
  calldata,
205
205
  });
206
- const ret = preparedData.ethCallResults[key];
206
+ const ret = preparedData.ethCallResults[ethCallKey];
207
207
  if (ret) {
208
208
  const result = iface.decodeFunctionResult("balanceOf", ret).toArray();
209
209
  return result.length == 1 ? result[0] : result;
@@ -231,11 +231,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
231
231
  "function getApproved(uint256) view returns (address)",
232
232
  ]);
233
233
  const calldata = iface.encodeFunctionData("getApproved", [tokenId]);
234
- const key = makeEthCallKey({
234
+ const ethCallKey = makeEthCallKey({
235
235
  context: ethCallContext,
236
236
  calldata,
237
237
  });
238
- const ret = preparedData.ethCallResults[key];
238
+ const ret = preparedData.ethCallResults[ethCallKey];
239
239
  if (ret) {
240
240
  const result = iface
241
241
  .decodeFunctionResult("getApproved", ret)
@@ -269,11 +269,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
269
269
  owner,
270
270
  operator,
271
271
  ]);
272
- const key = makeEthCallKey({
272
+ const ethCallKey = makeEthCallKey({
273
273
  context: ethCallContext,
274
274
  calldata,
275
275
  });
276
- const ret = preparedData.ethCallResults[key];
276
+ const ret = preparedData.ethCallResults[ethCallKey];
277
277
  if (ret) {
278
278
  const result = iface
279
279
  .decodeFunctionResult("isApprovedForAll", ret)
@@ -299,11 +299,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
299
299
  if (preparedData?.ethCallResults && ethCallContext) {
300
300
  const iface = new Interface(["function name() view returns (string)"]);
301
301
  const calldata = iface.encodeFunctionData("name", []);
302
- const key = makeEthCallKey({
302
+ const ethCallKey = makeEthCallKey({
303
303
  context: ethCallContext,
304
304
  calldata,
305
305
  });
306
- const ret = preparedData.ethCallResults[key];
306
+ const ret = preparedData.ethCallResults[ethCallKey];
307
307
  if (ret) {
308
308
  const result = iface.decodeFunctionResult("name", ret).toArray();
309
309
  return result.length == 1 ? result[0] : result;
@@ -328,11 +328,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
328
328
  "function ownerOf(uint256) view returns (address)",
329
329
  ]);
330
330
  const calldata = iface.encodeFunctionData("ownerOf", [tokenId]);
331
- const key = makeEthCallKey({
331
+ const ethCallKey = makeEthCallKey({
332
332
  context: ethCallContext,
333
333
  calldata,
334
334
  });
335
- const ret = preparedData.ethCallResults[key];
335
+ const ret = preparedData.ethCallResults[ethCallKey];
336
336
  if (ret) {
337
337
  const result = iface.decodeFunctionResult("ownerOf", ret).toArray();
338
338
  return result.length == 1 ? result[0] : result;
@@ -362,11 +362,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
362
362
  const calldata = iface.encodeFunctionData("supportsInterface", [
363
363
  interfaceId,
364
364
  ]);
365
- const key = makeEthCallKey({
365
+ const ethCallKey = makeEthCallKey({
366
366
  context: ethCallContext,
367
367
  calldata,
368
368
  });
369
- const ret = preparedData.ethCallResults[key];
369
+ const ret = preparedData.ethCallResults[ethCallKey];
370
370
  if (ret) {
371
371
  const result = iface
372
372
  .decodeFunctionResult("supportsInterface", ret)
@@ -395,11 +395,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
395
395
  "function symbol() view returns (string)",
396
396
  ]);
397
397
  const calldata = iface.encodeFunctionData("symbol", []);
398
- const key = makeEthCallKey({
398
+ const ethCallKey = makeEthCallKey({
399
399
  context: ethCallContext,
400
400
  calldata,
401
401
  });
402
- const ret = preparedData.ethCallResults[key];
402
+ const ret = preparedData.ethCallResults[ethCallKey];
403
403
  if (ret) {
404
404
  const result = iface.decodeFunctionResult("symbol", ret).toArray();
405
405
  return result.length == 1 ? result[0] : result;
@@ -424,11 +424,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
424
424
  "function tokenURI(uint256) view returns (string)",
425
425
  ]);
426
426
  const calldata = iface.encodeFunctionData("tokenURI", [tokenId]);
427
- const key = makeEthCallKey({
427
+ const ethCallKey = makeEthCallKey({
428
428
  context: ethCallContext,
429
429
  calldata,
430
430
  });
431
- const ret = preparedData.ethCallResults[key];
431
+ const ret = preparedData.ethCallResults[ethCallKey];
432
432
  if (ret) {
433
433
  const result = iface.decodeFunctionResult("tokenURI", ret).toArray();
434
434
  return result.length == 1 ? result[0] : result;
@@ -460,11 +460,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
460
460
  "function approve(address,uint256) nonpayable returns ()",
461
461
  ]);
462
462
  const calldata = iface.encodeFunctionData("approve", [to, tokenId]);
463
- const key = makeEthCallKey({
463
+ const ethCallKey = makeEthCallKey({
464
464
  context: ethCallContext,
465
465
  calldata,
466
466
  });
467
- const ret = preparedData.ethCallResults[key];
467
+ const ret = preparedData.ethCallResults[ethCallKey];
468
468
  if (ret) {
469
469
  const result = iface.decodeFunctionResult("approve", ret).toArray();
470
470
  return result.length == 1 ? result[0] : result;
@@ -496,11 +496,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
496
496
  to,
497
497
  tokenId,
498
498
  ]);
499
- const key = makeEthCallKey({
499
+ const ethCallKey = makeEthCallKey({
500
500
  context: ethCallContext,
501
501
  calldata,
502
502
  });
503
- const ret = preparedData.ethCallResults[key];
503
+ const ret = preparedData.ethCallResults[ethCallKey];
504
504
  if (ret) {
505
505
  const result = iface
506
506
  .decodeFunctionResult("safeTransferFrom", ret)
@@ -536,11 +536,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
536
536
  tokenId,
537
537
  data,
538
538
  ]);
539
- const key = makeEthCallKey({
539
+ const ethCallKey = makeEthCallKey({
540
540
  context: ethCallContext,
541
541
  calldata,
542
542
  });
543
- const ret = preparedData.ethCallResults[key];
543
+ const ret = preparedData.ethCallResults[ethCallKey];
544
544
  if (ret) {
545
545
  const result = iface
546
546
  .decodeFunctionResult("safeTransferFrom", ret)
@@ -572,11 +572,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
572
572
  operator,
573
573
  _approved,
574
574
  ]);
575
- const key = makeEthCallKey({
575
+ const ethCallKey = makeEthCallKey({
576
576
  context: ethCallContext,
577
577
  calldata,
578
578
  });
579
- const ret = preparedData.ethCallResults[key];
579
+ const ret = preparedData.ethCallResults[ethCallKey];
580
580
  if (ret) {
581
581
  const result = iface
582
582
  .decodeFunctionResult("setApprovalForAll", ret)
@@ -610,11 +610,11 @@ export class ERC721ContractView extends ContractView<ERC721> {
610
610
  to,
611
611
  tokenId,
612
612
  ]);
613
- const key = makeEthCallKey({
613
+ const ethCallKey = makeEthCallKey({
614
614
  context: ethCallContext,
615
615
  calldata,
616
616
  });
617
- const ret = preparedData.ethCallResults[key];
617
+ const ret = preparedData.ethCallResults[ethCallKey];
618
618
  if (ret) {
619
619
  const result = iface
620
620
  .decodeFunctionResult("transferFrom", ret)