From 86237c529fd2c26452e7c86d40df8c1d7800e0c1 Mon Sep 17 00:00:00 2001 From: Daniel <25051234+dasanra@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:14:51 +0100 Subject: [PATCH] Fix error in code snippet --- safe-core-sdk/protocol-kit/reference/migrating/v2.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/safe-core-sdk/protocol-kit/reference/migrating/v2.md b/safe-core-sdk/protocol-kit/reference/migrating/v2.md index 4d34d9ae..43c28128 100644 --- a/safe-core-sdk/protocol-kit/reference/migrating/v2.md +++ b/safe-core-sdk/protocol-kit/reference/migrating/v2.md @@ -46,5 +46,8 @@ const options = { nonce: '', safeTxGas: '' } -const safeTransaction = protocolKit.createTransaction({ [safeTransactionData], options }) +const safeTransaction = protocolKit.createTransaction({ + transactions: [safeTransactionData], + options +}) ``` \ No newline at end of file