From d2d96f797a193b6826db54d6b7de5d1eab3e666c Mon Sep 17 00:00:00 2001 From: arobsn <87387688+arobsn@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:02:48 -0300 Subject: [PATCH] fix tx building example code --- docs/.vitepress/config.ts | 2 +- docs/wallet-interaction.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 8581709..8476c59 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -36,7 +36,7 @@ function nav(): DefaultTheme.NavItem[] { items: [ { text: "Fleet SDK", - link: "https://github.com/fleet-sdk/fleet/blob/master/CONTRIBUTING.md", + link: "https://github.com/fleet-sdk/fleet/blob/master/CONTRIBUTING.md" }, { text: "Documentation", diff --git a/docs/wallet-interaction.md b/docs/wallet-interaction.md index 7e7d7d8..4d46cfb 100644 --- a/docs/wallet-interaction.md +++ b/docs/wallet-interaction.md @@ -222,7 +222,7 @@ const unsignedTransaction = new TransactionBuilder(creationHeight) .sendChangeTo(changeAddress) .payMinFee() .build() - .toPlainObject(); + .toEIP12Object(); const signedTransaction = await ergo.sign_tx(unsignedTransaction); // [!code focus] ```