Skip to content

Commit

Permalink
fix asset code use for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
gianfra-t committed Nov 13, 2024
1 parent 3eadebf commit c6ddbcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions signer-service/src/constants/tokenConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const TOKEN_CONFIG = {
},
};

function getTokenConfigByAssetCode(cofig, assetCode) {
for (const key in cofig) {
if (cofig[key].assetCodeRaw === assetCode) {
return cofig[key];
function getTokenConfigByAssetCode(config, assetCode) {
for (const key in config) {
if (config[key].assetCodeRaw === assetCode) {
return config[key];
}
}
return undefined;
Expand Down
2 changes: 1 addition & 1 deletion src/services/polkadot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function checkBalancePeriodically(
try {
const someBalanceUnits = await getStellarBalanceUnits(
stellarTargetAccountId,
outputToken.stellarAsset.code.stringRaw,
outputToken.stellarAsset.code.stringStellar,
);
console.log(`Balance check: ${someBalanceUnits.toString()} / ${amountDesiredUnitsBig.toString()}`);

Expand Down

0 comments on commit c6ddbcd

Please sign in to comment.