@ref-finance/ref-sdk 1.3.1 → 1.3.2

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.
@@ -3878,11 +3878,7 @@ var refFiViewFunction = /*#__PURE__*/function () {
3878
3878
  return near.account(REF_FI_CONTRACT_ID);
3879
3879
  case 3:
3880
3880
  nearConnection = _context.sent;
3881
- return _context.abrupt("return", nearConnection.viewFunction({
3882
- contractId: REF_FI_CONTRACT_ID,
3883
- methodName: methodName,
3884
- args: args
3885
- }));
3881
+ return _context.abrupt("return", nearConnection.viewFunction(REF_FI_CONTRACT_ID, methodName, args));
3886
3882
  case 5:
3887
3883
  case "end":
3888
3884
  return _context.stop();
@@ -3906,11 +3902,7 @@ var ftViewFunction = /*#__PURE__*/function () {
3906
3902
  return near.account(REF_FI_CONTRACT_ID);
3907
3903
  case 3:
3908
3904
  nearConnection = _context2.sent;
3909
- return _context2.abrupt("return", nearConnection.viewFunction({
3910
- contractId: tokenId,
3911
- methodName: methodName,
3912
- args: args
3913
- }));
3905
+ return _context2.abrupt("return", nearConnection.viewFunction(tokenId, methodName, args));
3914
3906
  case 5:
3915
3907
  case "end":
3916
3908
  return _context2.stop();
@@ -4202,11 +4194,7 @@ var refDCLSwapViewFunction = /*#__PURE__*/function () {
4202
4194
  }
4203
4195
  throw DCLInValid;
4204
4196
  case 6:
4205
- return _context10.abrupt("return", nearConnection.viewFunction({
4206
- contractId: config.REF_DCL_SWAP_CONTRACT_ID,
4207
- methodName: methodName,
4208
- args: args
4209
- }));
4197
+ return _context10.abrupt("return", nearConnection.viewFunction(config.REF_DCL_SWAP_CONTRACT_ID, methodName, args));
4210
4198
  case 7:
4211
4199
  case "end":
4212
4200
  return _context10.stop();