Skip to content

Commit

Permalink
Fix xTokens transfer on Bifrost Kusama
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldev5 committed Dec 15, 2023
1 parent 1c1d862 commit fc7f0b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nodes/supported/BifrostKusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class BifrostKusama extends ParachainNode implements IXTokensTransfer {
}

transferXTokens(input: XTokensTransferInput): Extrinsic | TSerializedApiCall {
// Multiple asset options need addressing
const currencySelection = { Native: input.currency }
const currencySelection = { [input.currency === 'BNC' ? 'Native' : 'Token']: input.currency }
return XTokensTransferImpl.transferXTokens(input, currencySelection)
}
}
Expand Down

0 comments on commit fc7f0b3

Please sign in to comment.