Skip to content

Commit

Permalink
Fix burn nft
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfnjust committed Dec 13, 2023
1 parent 491a6b8 commit bcd2444
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/ordinalLock.test.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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<OrdinalLock>
} as OrdiMethodCallOptions<OrdinalLock>
)
return expect(callContract()).not.rejected
})
Expand Down

0 comments on commit bcd2444

Please sign in to comment.