fix: order of parameters for sponsor tx #30
Annotations
10 errors and 1 warning
Test:
src/alexSDK.ts#L14
Replace `·broadcastSponsoredTx,·requiredStxAmountForSponsorTx,·runSponsoredSpotTx,·SponsoredTxError,·SponsoredTxErrorCode·` with `⏎··broadcastSponsoredTx,⏎··requiredStxAmountForSponsorTx,⏎··runSponsoredSpotTx,⏎··SponsoredTxError,⏎··SponsoredTxErrorCode,⏎`
|
Test:
src/alexSDK.ts#L168
Delete `·`
|
Test:
src/alexSDK.ts#L183
Replace `await·this.getRoute(from,·to)` with `(await·this.getRoute(from,·to));`
|
Test:
src/alexSDK.ts#L184
Replace `⏎······from,⏎······to,⏎······route⏎····)` with `from,·to,·route);`
|
Test:
src/alexSDK.ts#L189
Replace `·from·===·Currency.STX·?·stxAmount·:·await·this.getAmountTo(⏎······Currency.STX,⏎······stxAmount,⏎······from⏎····)` with `⏎······from·===·Currency.STX⏎········?·stxAmount⏎········:·await·this.getAmountTo(Currency.STX,·stxAmount,·from);`
|
Test:
src/alexSDK.ts#L195
Insert `;`
|
Test:
src/alexSDK.ts#L258
Replace `await·this.getRoute(currencyX,·currencyY)` with `(await·this.getRoute(currencyX,·currencyY));`
|
Test:
src/alexSDK.ts#L263
Insert `;`
|
Test:
src/alexSDK.ts#L264
Replace `·currencyX·===·Currency.STX·?·stxAmount·:·await·this.getAmountTo(⏎······Currency.STX,⏎······stxAmount,⏎······currencyX⏎····)` with `⏎······currencyX·===·Currency.STX⏎········?·stxAmount⏎········:·await·this.getAmountTo(Currency.STX,·stxAmount,·currencyX);`
|
Test:
src/alexSDK.ts#L270
Replace `SponsoredTxErrorCode.insufficient_funds,·'Insufficient·funds·to·cover·sponsor·fee')` with `⏎········SponsoredTxErrorCode.insufficient_funds,⏎········'Insufficient·funds·to·cover·sponsor·fee'⏎······);`
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading