From a9c8a3012585a1030b4bcac080a6a6575ef8e94a Mon Sep 17 00:00:00 2001 From: Alex Lewis Date: Fri, 16 Aug 2024 10:38:26 -0700 Subject: [PATCH] Fix psbt docs --- .github/workflows/static.yml | 2 +- docs/index.html | 2 +- scripts/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 5a6f0691..1713809c 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -6,7 +6,7 @@ on: push: paths: - 'docs/**' - branches: ['main', 'v1.0'] + branches: ['main'] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/docs/index.html b/docs/index.html index cdb7c46d..014b5b41 100644 --- a/docs/index.html +++ b/docs/index.html @@ -81,7 +81,7 @@ // Request the signing of a psbt // Generates a popup to be confirmed by the user // Promise will reject or onError will be called if canceled - const psbtRes = await myDogeMask.requestPSBT({ rawTx: 'the raw tx hex', index: 1, /*onSuccess, onError*/); + const psbtRes = await myDogeMask.requestPsbt({ rawTx: 'the raw tx hex', indexes: [1, 2], /*onSuccess, onError*/); console.log('psbt result', psbtRes); // { "txId": "b9fc04f226b194684fe24c786be89cae26abf8fcebbf90ff7049d5bc7fa003f0" } diff --git a/scripts/README.md b/scripts/README.md index 54c60e18..b20dc8b0 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -86,7 +86,7 @@ if (myDogeMask?.isMyDoge) { // Request the signing of a psbt // Generates a popup to be confirmed by the user // Promise will reject or onError will be called if canceled - const psbtRes = await myDogeMask.requestPSBT({ rawTx: 'the raw tx hex', index: 1, /*onSuccess, onError*/); + const psbtRes = await myDogeMask.requestPsbt({ rawTx: 'the raw tx hex', indexes: [1, 2], /*onSuccess, onError*/); console.log('psbt result', psbtRes); // { "txId": "b9fc04f226b194684fe24c786be89cae26abf8fcebbf90ff7049d5bc7fa003f0" }