From df8d76412b1033f49dd243345741e301b666535e Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp <51655063+gsteenkamp89@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:57:25 +0200 Subject: [PATCH] feat: add simulation in proposal view (#122) --- src/plugins/oSnap/Proposal.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/plugins/oSnap/Proposal.vue b/src/plugins/oSnap/Proposal.vue index 4a226129..ad5fc57f 100644 --- a/src/plugins/oSnap/Proposal.vue +++ b/src/plugins/oSnap/Proposal.vue @@ -8,6 +8,7 @@ import ReadOnly from './components/Input/ReadOnly.vue'; import SafeLinkWithAvatar from './components/SafeLinkWithAvatar.vue'; import { GnosisSafe, Transaction } from './types'; import OsnapMarketingWidget from './components/OsnapMarketingWidget.vue'; +import TenderlySimulation from './components/TransactionBuilder/TenderlySimulation.vue'; const keyOrder = [ 'to', @@ -59,9 +60,11 @@ function enrichTransactionForDisplay(transaction: Transaction) { ...commonProperties, type: 'Contract interaction', 'method name': method.name, - ...Object.fromEntries(method.inputs.map((input,i)=>{ - return [`${input.name} (param ${i+1}): `,parameters[i]] - })) + ...Object.fromEntries( + method.inputs.map((input, i) => { + return [`${input.name} (param ${i + 1}): `, parameters[i]]; + }) + ) }; } if (transaction.type === 'transferFunds') { @@ -97,7 +100,7 @@ function enrichTransactionForDisplay(transaction: Transaction) {