Skip to content

Commit

Permalink
Merge pull request #25 from CoreumFoundation/fix/explorer-bugs
Browse files Browse the repository at this point in the history
Fix/explorer bugs
  • Loading branch information
jccifuentes21 authored Mar 21, 2023
2 parents 73d9b72 + c676f40 commit 1c98f95
Show file tree
Hide file tree
Showing 45 changed files with 170 additions and 84 deletions.
4 changes: 2 additions & 2 deletions apps/web-coreum/public/locales/en/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"maxDiscount": "Max Discount",
"maxBlockGas": "Max Block Gas",
"initialGasPrice": "Initial Gas Price",
"longEmaBlockLength": "Long Ema Block Length",
"shortEmaBlockLength": "Short Ema Block Length",
"longEmaBlockLength": "Long EMA Block Length",
"shortEmaBlockLength": "Short EMA Block Length",
"maxGasPriceMultiplier": "Max Gas Price Multiplier",
"escalationStartFraction": "Escalation Start Fraction"
}
37 changes: 16 additions & 21 deletions packages/ui/src/assets/devnet-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions packages/ui/src/assets/mainnet-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions packages/ui/src/assets/testnet-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/ui/src/components/msg/asset/burn/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const Burn: FC<{ message: MsgBurn }> = (props) => {
const parsedAmount = `${formatNumber(
amount.value,
amount.exponent
)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
)} ${amount.displayDenom}`;

const sender = useProfileRecoil(message.sender);

Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/msg/asset/freeze/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const Freeze: FC<{ message: MsgFreeze }> = (props) => {
const parsedAmount = `${formatNumber(
amount.value,
amount.exponent
)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
)} ${amount.displayDenom}`;

return (
<Typography>
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/msg/asset/mint/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const Mint: FC<{ message: MsgMint }> = (props) => {
const parsedAmount = `${formatNumber(
amount.value,
amount.exponent
)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
)} ${amount.displayDenom}`;

return (
<Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const SetWhitelistedLimit: FC<{ message: MsgSetWhitelistedLimit }> = (props) =>
const parsedAmount = `${formatNumber(
amount.value,
amount.exponent
)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
)} ${amount.displayDenom}`;

return (
<Typography>
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/msg/asset/unfreeze/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const Unfreeze: FC<{ message: MsgUnfreeze }> = (props) => {
const parsedAmount = `${formatNumber(
amount.value,
amount.exponent
)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
)} ${amount.displayDenom}`;
return (
<Typography>
<Trans
Expand Down
6 changes: 4 additions & 2 deletions packages/ui/src/components/msg/bank/multisend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const RecieverName: FC<{ address: string; coins: MsgCoin[] }> = (props) => {
const parsedAmount = coins
?.map((x) => {
const amount = formatToken(x.amount, x.denom);
return `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
return `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom}`;
})
.reduce(
(text, value, j, array) => text + (j < array.length - 1 ? ', ' : ` ${t('and')} `) + value
Expand Down Expand Up @@ -43,7 +44,8 @@ const Multisend: FC<{ message: MsgMultiSend }> = (props) => {
const senderAmount = sender?.coins
?.map((x) => {
const amount = formatToken(x.amount, x.denom);
return `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
return `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom}`;
})
.reduce(
(text, value, i, array) => text + (i < array.length - 1 ? ', ' : ` ${t('and')} `) + value
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/msg/bank/send/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const Send: FC<{ message: MsgSend }> = (props) => {
const parsedAmount = message?.amount
?.map((x) => {
const amount = formatToken(x.amount, x.denom);
return `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`;
//Removed ".toUpperCase()" from the end of the line below per Reza's request
return `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom}`;
})
.reduce(
(text, value, i, array) => text + (i < array.length - 1 ? ', ' : ` ${t('and')} `) + value
Expand Down
Loading

0 comments on commit 1c98f95

Please sign in to comment.