From 9fa2e5c872c1ec827a1877716aaf7755845b4858 Mon Sep 17 00:00:00 2001 From: Ryan Pate Date: Mon, 15 Apr 2024 15:17:36 -0700 Subject: [PATCH] fix(pg): Remove tx data from proposal request --- .changeset/rare-toys-obey.md | 6 ++++++ packages/core/src/actions/types.ts | 1 - packages/plugins/src/foundry/utils/index.ts | 6 +----- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .changeset/rare-toys-obey.md diff --git a/.changeset/rare-toys-obey.md b/.changeset/rare-toys-obey.md new file mode 100644 index 000000000..5c7b0f5e2 --- /dev/null +++ b/.changeset/rare-toys-obey.md @@ -0,0 +1,6 @@ +--- +'@sphinx-labs/plugins': patch +'@sphinx-labs/core': patch +--- + +Temporarily remove tx data from proposal requests diff --git a/packages/core/src/actions/types.ts b/packages/core/src/actions/types.ts index 6f274e2b6..eda407182 100644 --- a/packages/core/src/actions/types.ts +++ b/packages/core/src/actions/types.ts @@ -151,7 +151,6 @@ export type NetworkGasEstimate = { chainId: number estimatedGas: string fundsRequested?: string - transactions?: Array } /** diff --git a/packages/plugins/src/foundry/utils/index.ts b/packages/plugins/src/foundry/utils/index.ts index 582d40e3a..6080d4be7 100644 --- a/packages/plugins/src/foundry/utils/index.ts +++ b/packages/plugins/src/foundry/utils/index.ts @@ -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), @@ -1177,7 +1174,6 @@ export const getNetworkGasEstimate: GetNetworkGasEstimate = async ( return { chainId: Number(chainId), estimatedGas, - transactions: transactionsWithGasEstimates, fundsRequested: networkConfig.safeFundingRequest?.fundsRequested ?? '0', } }