-
Notifications
You must be signed in to change notification settings - Fork 17
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
New Tab: IBC #795
New Tab: IBC #795
Conversation
const validateAddress = (chain: Chain | undefined, address: string): boolean => { | ||
if (!chain || address === '') return false; | ||
return bech32IsValid(address, chain.addressPrefix); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we allow any address if the chain is undefined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This particular check where chain
can be undefined relates to zustand booting up empty and then populating with chain data from our hard-coded registry. We can't transfer without a channel-id being available first.
import { joinLoHiAmount } from '@penumbra-zone/types/src/amount'; | ||
import { bech32Address } from '@penumbra-zone/bech32'; | ||
|
||
export const Ics20WithdrawalComponent = ({ value }: { value: Ics20Withdrawal }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not immediately but we probably do want to have a view for the Ics20Withdrawal so that we can insert:
- token metadata
- address view (of return address)
@Valentine1898 let's pair on that error you're seeing |
40644a0
to
b027fdf
Compare
<div className='grow overflow-auto p-[30px] pb-44 pt-10'> | ||
<p className='bg-text-linear bg-clip-text pb-2 font-headline text-2xl font-bold text-transparent'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes bug where tx approval window does not scroll all the way down given approve/deny buttons overlap it with a fixed position
<div> | ||
{/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */} | ||
{memoView.value.plaintext?.text || ( | ||
<span className='italic text-gray-600'>== none ==</span> | ||
)} | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 👍, all LGTM
Closes #248
Does not address design, just functional elements. Design to come next. Updates: