-
Notifications
You must be signed in to change notification settings - Fork 109
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
Support IBC MsgTransfer #128
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
57ccc9b
to
e1899eb
Compare
types/txMsg.ts
Outdated
type OmmitedMsgTransfer = Omit<MsgTransfer, "timeoutHeight" | "memo">; | ||
type MsgTransferRequiredToken = OmmitedMsgTransfer & Required<Pick<OmmitedMsgTransfer, "token">>; | ||
interface MsgTransferOptionalMemo extends MsgTransferRequiredToken { | ||
readonly memo?: string; |
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.
Why not keep this required and just set it empty when the user does not put in text?
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.
I thought it was weird that the comment of the type said "optional field" and the field was not optional, but it's not important, I can remove it
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 is a problem coming from Go and protobuf. There the something is called "optional" wen it is allowed to be empty. Since at transaction level undefined
and ""
are the same thing we don't need to differentiate it here.
{humanTimestampOptions.map(({ label }) => ( | ||
<option key={label}>{label}</option> | ||
))} | ||
</datalist> |
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.
I tried this dropdown in the Vercel preview. But it seems like after it was set once you cannot change it anymore.
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.
Ah it seems it filters the list, maybe I can clear the field on click so all the options appear
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.
Very nice. Let's merge this when you are happy.
The input field is still not creat. Maybe we find a better solution. But let's not block the feature on this.
Part of #99.
Closes #127.