-
Notifications
You must be signed in to change notification settings - Fork 23
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
Feature/add minting to transfer 726 #792
Feature/add minting to transfer 726 #792
Conversation
…sync with a contract
✔️ Preview deployment is ready! 🔨 Explore the source changes: fb94b07 😎 Browse the preview: https://bafybeif7msfu4pewfrumw2wwctsqndmdb7sao3ony4tmtng4fas3ctbmiy.ipfs.dweb.link |
console.log({ tokenData }); | ||
console.log(tokenData.symbol); |
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.
console.log removal
const { guild_id: guildId } = | ||
useParams<{ chain_name?: string; guild_id?: string }>(); | ||
const { data } = useGuildConfig(guildId); | ||
const { data: tokenData } = useERC20Info(data?.token); | ||
const totalSupply = useBigNumberToNumber(tokenData?.totalSupply, 18); | ||
|
||
const parsedData = useMemo<REPMintState>(() => { | ||
if (!decodedCall) return null; | ||
return { | ||
toAddress: decodedCall.args.to, | ||
amount: decodedCall.args.amount, | ||
}; | ||
}, [decodedCall]); | ||
|
||
const { imageUrl } = useENSAvatar(parsedData?.toAddress, MAINNET_ID); |
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 chunk of code is very similar throughout the REPMint components. I suggest that it would be worth placing this processing into its own hook.
} | ||
}; | ||
return ( | ||
<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.
Could this be a fragment?
console.log({ tokenData }); | ||
console.log(tokenData.symbol); |
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 remove this logs?
✔️ Preview deployment is ready! 🔨 Explore the source changes: 0334f04 😎 Browse the preview: https://bafybeie4pfotyuhybfs7aj6sotwvxtafu7w53qvqaqy63s2q4akewijosy.ipfs.dweb.link |
✔️ Preview deployment is ready! 🔨 Explore the source changes: d311fbf 😎 Browse the preview: https://bafybeiewcgf7rgxhzy46khw73b4a26ndqyhcdglcjhbeuvzie2dgsxqssu.ipfs.dweb.link |
✔️ Preview deployment is ready! 🔨 Explore the source changes: 12d68ee 😎 Browse the preview: https://bafybeicebedbm5yjuvfyqwocatwr2geapi3dtow6s33774nmmlfvte7oby.ipfs.dweb.link |
Hello guys @MiltonTulli @hhamud, back from the dead here in ETHAmsterdam :D. Thanks for the comments, the latest commits do:
|
Description
Issue: #726
ERC20SnapshotRep
mint-functionTODO:
Modal
RepMintEditor
RepMintInfoLine
RepMintSummary
Type of change
How Has This Been Tested?
This has only been manually tested. Since the dev-script is currently not working with REP guilds, it was not possible to execute the actual action. Thus, it needs to be tested that it actually sends the correct data in the calldata.
Checklist: