From bcd2444fe654ac9eccfa7be42a47b63afa8395d0 Mon Sep 17 00:00:00 2001 From: hh Date: Wed, 13 Dec 2023 17:14:28 +0800 Subject: [PATCH] Fix burn nft --- tests/ordinalLock.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ordinalLock.test.ts b/tests/ordinalLock.test.ts index 7ccbacc8..feacf0ea 100644 --- a/tests/ordinalLock.test.ts +++ b/tests/ordinalLock.test.ts @@ -1,6 +1,7 @@ import { expect, use } from 'chai' import { MethodCallOptions, bsv, findSig, PubKey, Addr } from 'scrypt-ts' import { OrdinalLock, purchaseTxBuilder } from '../src/contracts/ordinalLock' +import { OrdiMethodCallOptions, OrdiNFTP2PKH } from 'scrypt-ord' import chaiAsPromised from 'chai-as-promised' import { getDefaultSigner } from './utils/helper' use(chaiAsPromised) @@ -47,9 +48,12 @@ describe('Test SmartContract `OrdinalLock`', () => { (sigResp) => findSig(sigResp, seller.publicKey), PubKey(seller.publicKey.toByteString()), { + transfer: new OrdiNFTP2PKH( + Addr(seller.toAddress().toByteString()) + ), pubKeyOrAddrToSign: seller.publicKey, changeAddress: seller.toAddress(), - } as MethodCallOptions + } as OrdiMethodCallOptions ) return expect(callContract()).not.rejected })