File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " slpx-sdk" ,
33 "type" : " module" ,
4- "version" : " 0.0.14 " ,
4+ "version" : " 0.0.15 " ,
55 "main" : " ./dist/index.cjs" ,
66 "module" : " ./dist/index.js" ,
77 "types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -197,8 +197,6 @@ export function getTestnetRedeemParams(
197197export function getTestnetConversionParams (
198198 underlyingAssetName : MintingAssetName ,
199199 chain : ValidTestnetChainInput ,
200- amount : string ,
201- partnerCode : string = "bifrost"
202200) {
203201 const underlyingAssetAddress = getTestnetAssetAddress (
204202 underlyingAssetName ,
@@ -217,16 +215,6 @@ export function getTestnetConversionParams(
217215 throw new Error ( `No contract address found for chain ID: ${ chainName } ` ) ;
218216 }
219217
220- // Check if the amount is a positive number
221- if ( Number ( amount ) <= 0 ) {
222- throw new Error ( "Amount must be a positive number" ) ;
223- }
224-
225- // Check if partner code is valid string
226- if ( typeof partnerCode !== "string" ) {
227- throw new Error ( "Partner code must be a string" ) ;
228- }
229-
230218 const testnetConversionParams = {
231219 address : CONTRACT_ADDRESS_INFO [ chainName ] . slpx ! . address ,
232220 abi : TESTNET_SLPX_V2_ABI ,
@@ -236,3 +224,5 @@ export function getTestnetConversionParams(
236224
237225 return testnetConversionParams ;
238226}
227+
228+
You can’t perform that action at this time.
0 commit comments