Since the factory contract address in the sdk is fixed, but the difference in the nonce values of the contracts deployed by capricorn on the official network and the test network causes the contract address not to be fixed, if you want to use the sdk of the test environment, you have to replace the factory address value and init_code_hash manually
exportconstFACTORY_ADDRESS='0x33CB4150f3ADFCD92fbFA3309823A2a242bF280f'exportconstINIT_CODE_HASH='0xb0c8165c8794e81a0f70b99700e6427abb5d0df7a5cc78b5d5479ae71d1a6eea'exportconstMINIMUM_LIQUIDITY=JSBI.BigInt(1000)// exports for internal consumptionexportconstZERO=JSBI.BigInt(0)exportconstONE=JSBI.BigInt(1)exportconstTWO=JSBI.BigInt(2)exportconstTHREE=JSBI.BigInt(3)exportconstFIVE=JSBI.BigInt(5)exportconstTEN=JSBI.BigInt(10)exportconst_100=JSBI.BigInt(100)exportconst_997=JSBI.BigInt(997)exportconst_1000=JSBI.BigInt(1000)
Test Network
exportconstFACTORY_ADDRESS='0xc524aed399c4dc98c42af8fab58f440ff5cd36f0'exportconstINIT_CODE_HASH='0xb0c8165c8794e81a0f70b99700e6427abb5d0df7a5cc78b5d5479ae71d1a6eea'exportconstMINIMUM_LIQUIDITY=JSBI.BigInt(1000)// exports for internal consumptionexportconstZERO=JSBI.BigInt(0)exportconstONE=JSBI.BigInt(1)exportconstTWO=JSBI.BigInt(2)exportconstTHREE=JSBI.BigInt(3)exportconstFIVE=JSBI.BigInt(5)exportconstTEN=JSBI.BigInt(10)exportconst_100=JSBI.BigInt(100)exportconst_997=JSBI.BigInt(997)exportconst_1000=JSBI.BigInt(1000)