Skip to content

Commit

Permalink
feat(planet): save the planet
Browse files Browse the repository at this point in the history
  • Loading branch information
oumar-fall committed Nov 14, 2024
1 parent a5a8014 commit 0486bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/bundler-sdk-viem/src/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@ export const populateSubBundle = (

const requirementOperations =
getRequirementOperations?.(requiredTokenAmounts) ?? [];
requiredTokenAmounts = data.simulateWithUnlimitedBalances(
({ requiredTokenAmounts } = data.simulateWithUnlimitedBalances(
requirementOperations
.concat(allOperations)
.map((operation) => getSimulatedBundlerOperation(operation)),
[bundler],
).requiredTokenAmounts;
));

// Append required input transfers.
requiredTokenAmounts.forEach(({ token, required }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/simulation-sdk/src/SimulationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export class SimulationState implements InputSimulationState {
const bundlerTokenDiffs = holders
.flatMap((holder) =>
keys(virtualBundlerData.holdings[holder]).map(
(token) => [holder, token] as [Address, Address],
(token) => [holder, token] as const,
),
)
.map(([holder, token]) => ({
Expand Down

0 comments on commit 0486bf0

Please sign in to comment.