Skip to content

Commit

Permalink
fix: generic call value
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Dec 19, 2023
1 parent b09392c commit 52e93f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/multichain-deploy/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ export const executeViaSafe = async (
const [, target] = contract.split("_");
const simulationResult = await ethers.provider.call({
to: target,
value: ethValues[i],
data: encoded,
from: safeAddress
from: safeAddress,
value: ethValues[i]
});

console.log("executing from guardians safe:", {
Expand Down Expand Up @@ -348,8 +348,7 @@ export const executeViaSafe = async (
});

const simulationResult = await ctrl.callStatic.genericCall(contract, encoded, release.Avatar, ethValues[i], {
from: safeAddress,
value: ethValues[i]
from: safeAddress
});
console.log("executing genericCall simulation result:", {
sigHash,
Expand All @@ -364,7 +363,7 @@ export const executeViaSafe = async (
]);
safeTransactionData.push({
to: ctrl.address,
value: ethValues[i],
value: "0",
data: genericEncode
});
}
Expand Down

0 comments on commit 52e93f9

Please sign in to comment.