@leofcoin/workers 1.5.39 → 1.5.40
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.
|
@@ -1356,9 +1356,10 @@ const get = async ({ contract, method, params }) => {
|
|
|
1356
1356
|
if (topLevelRead)
|
|
1357
1357
|
beginExecution(`read:${contract}:${method}:${JSON.stringify(params ?? [], jsonStringifyBigInt)}`);
|
|
1358
1358
|
try {
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1359
|
+
const member = contracts[contract][method];
|
|
1360
|
+
if (typeof member === 'function')
|
|
1361
|
+
return await member.apply(contracts[contract], params ?? []);
|
|
1362
|
+
return member;
|
|
1362
1363
|
}
|
|
1363
1364
|
finally {
|
|
1364
1365
|
if (topLevelRead) {
|