Skip to content

Commit

Permalink
fix(pg): Remove tx data from proposal request
Browse files Browse the repository at this point in the history
  • Loading branch information
RPate97 committed Apr 15, 2024
1 parent 0666020 commit 9fa2e5c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/rare-toys-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@sphinx-labs/plugins': patch
'@sphinx-labs/core': patch
---

Temporarily remove tx data from proposal requests
1 change: 0 additions & 1 deletion packages/core/src/actions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export type NetworkGasEstimate = {
chainId: number
estimatedGas: string
fundsRequested?: string
transactions?: Array<TransactionEstimatedGas>
}

/**
Expand Down
6 changes: 1 addition & 5 deletions packages/plugins/src/foundry/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,10 +1164,7 @@ export const getNetworkGasEstimate: GetNetworkGasEstimate = async (
const { transactions } = await simulate(deploymentConfig, chainId, rpcUrl)

const provider = new SphinxJsonRpcProvider(rpcUrl)
const { estimatedGas, transactionsWithGasEstimates } = await getEstimatedGas(
transactions,
provider
)
const { estimatedGas } = await getEstimatedGas(transactions, provider)

const networkConfig = fetchNetworkConfigFromDeploymentConfig(
BigInt(chainId),
Expand All @@ -1177,7 +1174,6 @@ export const getNetworkGasEstimate: GetNetworkGasEstimate = async (
return {
chainId: Number(chainId),
estimatedGas,
transactions: transactionsWithGasEstimates,
fundsRequested: networkConfig.safeFundingRequest?.fundsRequested ?? '0',
}
}
Expand Down

0 comments on commit 9fa2e5c

Please sign in to comment.