@@ -4,7 +4,7 @@ import { coins } from '@bitgo/statics';
44import { TransactionBuilderFactory } from '../../src' ;
55import { BurnNftTransaction } from '../../src/lib/transaction/burnNftTransaction' ;
66import * as testData from '../resources/vet' ;
7- import { BURN_NFT_METHOD_ID , STARGATE_NFT_ADDRESS_TESTNET } from '../../src/lib/constants' ;
7+ import { BURN_NFT_METHOD_ID , STARGATE_CONTRACT_ADDRESS_TESTNET } from '../../src/lib/constants' ;
88
99describe ( 'Vet Burn NFT Transaction' , ( ) => {
1010 const factory = new TransactionBuilderFactory ( coins . get ( 'tvet' ) ) ;
@@ -16,7 +16,7 @@ describe('Vet Burn NFT Transaction', () => {
1616
1717 txBuilder . sender ( testData . addresses . validAddresses [ 0 ] ) ;
1818 txBuilder . tokenId ( tokenId ) ;
19- txBuilder . nftContract ( STARGATE_NFT_ADDRESS_TESTNET ) ;
19+ txBuilder . nftContract ( STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
2020 txBuilder . gas ( 21000 ) ;
2121 txBuilder . nonce ( '64248' ) ;
2222 txBuilder . blockRef ( '0x014ead140e77bbc1' ) ;
@@ -27,7 +27,7 @@ describe('Vet Burn NFT Transaction', () => {
2727
2828 should . equal ( tx . sender , testData . addresses . validAddresses [ 0 ] ) ;
2929 should . equal ( tx . tokenId , tokenId ) ;
30- should . equal ( tx . contract , STARGATE_NFT_ADDRESS_TESTNET ) ;
30+ should . equal ( tx . contract , STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
3131 should . equal ( tx . gas , 21000 ) ;
3232 should . equal ( tx . nonce , '64248' ) ;
3333 should . equal ( tx . expiration , 64 ) ;
@@ -40,7 +40,7 @@ describe('Vet Burn NFT Transaction', () => {
4040 tx . clauses . length . should . equal ( 1 ) ;
4141 should . exist ( tx . clauses [ 0 ] ) ;
4242 should . exist ( tx . clauses [ 0 ] . to ) ;
43- tx . clauses [ 0 ] ?. to ?. should . equal ( STARGATE_NFT_ADDRESS_TESTNET ) ;
43+ tx . clauses [ 0 ] ?. to ?. should . equal ( STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
4444 should . exist ( tx . clauses [ 0 ] . value ) ;
4545 tx . clauses [ 0 ] . value . should . equal ( '0x0' ) ;
4646
@@ -51,14 +51,14 @@ describe('Vet Burn NFT Transaction', () => {
5151 should . equal ( tx . inputs [ 0 ] . value , '0' ) ;
5252 should . equal ( tx . inputs [ 0 ] . coin , 'tvet' ) ;
5353
54- should . equal ( tx . outputs [ 0 ] . address , STARGATE_NFT_ADDRESS_TESTNET ) ;
54+ should . equal ( tx . outputs [ 0 ] . address , STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
5555 should . equal ( tx . outputs [ 0 ] . value , '0' ) ;
5656 should . equal ( tx . outputs [ 0 ] . coin , 'tvet' ) ;
5757 } ) ;
5858
5959 it ( 'should build a burn NFT transaction with custom contract address' , async function ( ) {
6060 const tokenId = '123456' ;
61- const customContractAddress = STARGATE_NFT_ADDRESS_TESTNET ; // Use the valid testnet NFT address
61+ const customContractAddress = STARGATE_CONTRACT_ADDRESS_TESTNET ; // Use the valid testnet NFT address
6262 const txBuilder = factory . getBurnNftBuilder ( ) ;
6363
6464 txBuilder . sender ( testData . addresses . validAddresses [ 0 ] ) ;
@@ -85,7 +85,7 @@ describe('Vet Burn NFT Transaction', () => {
8585
8686 txBuilder . sender ( testData . addresses . validAddresses [ 0 ] ) ;
8787 txBuilder . tokenId ( tokenId ) ;
88- txBuilder . nftContract ( STARGATE_NFT_ADDRESS_TESTNET ) ;
88+ txBuilder . nftContract ( STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
8989 txBuilder . gas ( 21000 ) ;
9090 txBuilder . nonce ( '64248' ) ;
9191 txBuilder . blockRef ( '0x014ead140e77bbc1' ) ;
@@ -101,7 +101,7 @@ describe('Vet Burn NFT Transaction', () => {
101101
102102 should . equal ( deserializedTx . type , TransactionType . StakingWithdraw ) ;
103103 should . equal ( deserializedTx . tokenId , tokenId ) ;
104- should . equal ( deserializedTx . contract , STARGATE_NFT_ADDRESS_TESTNET ) ;
104+ should . equal ( deserializedTx . contract , STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
105105 } ) ;
106106
107107 it ( 'should validate the transaction data structure' , async function ( ) {
@@ -111,7 +111,7 @@ describe('Vet Burn NFT Transaction', () => {
111111 await should ( txBuilder . build ( ) ) . be . rejectedWith ( 'NFT contract address is required' ) ;
112112
113113 txBuilder . sender ( testData . addresses . validAddresses [ 0 ] ) ;
114- txBuilder . nftContract ( STARGATE_NFT_ADDRESS_TESTNET ) ;
114+ txBuilder . nftContract ( STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
115115 await should ( txBuilder . build ( ) ) . be . rejectedWith ( 'Token ID is required' ) ;
116116
117117 // Now add the token ID and it should build successfully
@@ -134,7 +134,7 @@ describe('Vet Burn NFT Transaction', () => {
134134 it ( 'should fail with invalid token ID' , async function ( ) {
135135 const txBuilder = factory . getBurnNftBuilder ( ) ;
136136 txBuilder . sender ( testData . addresses . validAddresses [ 0 ] ) ;
137- txBuilder . nftContract ( STARGATE_NFT_ADDRESS_TESTNET ) ;
137+ txBuilder . nftContract ( STARGATE_CONTRACT_ADDRESS_TESTNET ) ;
138138 txBuilder . tokenId ( '' ) ;
139139
140140 await should ( txBuilder . build ( ) ) . be . rejectedWith ( 'Token ID is required' ) ;
0 commit comments