From fea3b0d3890892a53622f56e16bf8118db784af3 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Wed, 17 Apr 2024 13:56:44 -0600 Subject: [PATCH] pr fix --- examples/bitcoinjs-lib/src/index.ts | 2 +- examples/bitcore-lib/LICENCE | 21 +++++++++++++++++++++ examples/bitcore-lib/test/tests.ts | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 examples/bitcore-lib/LICENCE diff --git a/examples/bitcoinjs-lib/src/index.ts b/examples/bitcoinjs-lib/src/index.ts index 9d75d430a9..82fc7a905d 100644 --- a/examples/bitcoinjs-lib/src/index.ts +++ b/examples/bitcoinjs-lib/src/index.ts @@ -44,7 +44,7 @@ app.get('/get-private-key-wif', (req, res) => { }); app.post('/create-transaction', (req, res) => { - const transaction = new bitcoin.Transaction(); + let transaction = new bitcoin.Transaction(); transaction.version = 2; const prevTxId = diff --git a/examples/bitcore-lib/LICENCE b/examples/bitcore-lib/LICENCE new file mode 100644 index 0000000000..19cda474a7 --- /dev/null +++ b/examples/bitcore-lib/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 BitPay, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/examples/bitcore-lib/test/tests.ts b/examples/bitcore-lib/test/tests.ts index 04de0113d5..c41f5dd55a 100644 --- a/examples/bitcore-lib/test/tests.ts +++ b/examples/bitcore-lib/test/tests.ts @@ -3,5 +3,5 @@ import { Test } from 'azle/test'; import { getBitcoinTests } from './bitcoin'; export function getTests(canisterId: string): Test[] { - return [...getBitcoinTests(canisterId)]; + return getBitcoinTests(canisterId); }