Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/explorer bugs #25

Merged
merged 3 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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