anymal-protocol 1.0.132 → 1.0.133
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/dist/index.js +7 -0
- package/dist/index.mjs +7 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -483,6 +483,12 @@ function useSendCoinbaseUserOperation() {
|
|
|
483
483
|
if (!evmAddress || !contractAddress || !abi || !functionName) {
|
|
484
484
|
return { success: false, message: "Missing required information" };
|
|
485
485
|
}
|
|
486
|
+
console.log("=== Contract Call Details ===");
|
|
487
|
+
console.log("Function:", functionName);
|
|
488
|
+
console.log("Args:", args);
|
|
489
|
+
console.log("Contract:", contractAddress);
|
|
490
|
+
console.log("Account:", evmAddress);
|
|
491
|
+
console.log("============================");
|
|
486
492
|
try {
|
|
487
493
|
await publicClient.simulateContract({
|
|
488
494
|
address: contractAddress,
|
|
@@ -494,6 +500,7 @@ function useSendCoinbaseUserOperation() {
|
|
|
494
500
|
console.log("\u2705 Simulation successful");
|
|
495
501
|
} catch (simError) {
|
|
496
502
|
console.error("\u274C Simulation failed:", simError);
|
|
503
|
+
console.log("Failed with args:", JSON.stringify(args, null, 2));
|
|
497
504
|
return {
|
|
498
505
|
success: false,
|
|
499
506
|
message: `Simulation failed: ${simError.shortMessage || simError.message}`
|
package/dist/index.mjs
CHANGED
|
@@ -405,6 +405,12 @@ function useSendCoinbaseUserOperation() {
|
|
|
405
405
|
if (!evmAddress || !contractAddress || !abi || !functionName) {
|
|
406
406
|
return { success: false, message: "Missing required information" };
|
|
407
407
|
}
|
|
408
|
+
console.log("=== Contract Call Details ===");
|
|
409
|
+
console.log("Function:", functionName);
|
|
410
|
+
console.log("Args:", args);
|
|
411
|
+
console.log("Contract:", contractAddress);
|
|
412
|
+
console.log("Account:", evmAddress);
|
|
413
|
+
console.log("============================");
|
|
408
414
|
try {
|
|
409
415
|
await publicClient.simulateContract({
|
|
410
416
|
address: contractAddress,
|
|
@@ -416,6 +422,7 @@ function useSendCoinbaseUserOperation() {
|
|
|
416
422
|
console.log("\u2705 Simulation successful");
|
|
417
423
|
} catch (simError) {
|
|
418
424
|
console.error("\u274C Simulation failed:", simError);
|
|
425
|
+
console.log("Failed with args:", JSON.stringify(args, null, 2));
|
|
419
426
|
return {
|
|
420
427
|
success: false,
|
|
421
428
|
message: `Simulation failed: ${simError.shortMessage || simError.message}`
|
package/package.json
CHANGED