-
Notifications
You must be signed in to change notification settings - Fork 110
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
Validate macrocoin, allow empty funds and IBC #190
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
}); | ||
|
||
console.log({ msgValue }); |
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.
Should we remove this?
@@ -102,6 +107,13 @@ const MsgInstantiateContractForm = ({ | |||
return false; | |||
} | |||
|
|||
try { | |||
macroCoinToMicroCoin({ denom, amount }, chain.assets); |
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.
Yeah the implementation has exceeded the logic behind the initial name I gave it
Closes #180.
Closes #183.
Closes #191.
Closes #192.
#180 was because of missing validation.
#183 and #192 because we didn't account for IBC tokens not disclosed on the chain-registry.
#191 because if funds/amount was an array, we sent an empty coin instead of an empty array.