-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added Delete and trasnfer btn #26
base: master
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/warkanlock/rarity-visualizer-ui/9M6ZT2DRhiET1bbondronZ6dGaZd |
const id = toast.loading("Transfering summoner..."); | ||
if (!transferWallet) { | ||
toast.update(id, { | ||
render: `Can't transfer to an empty name!`, |
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.
Change name for wallet
await context.contract_base.methods | ||
.safeTransferFrom(walletFrom, transferWallet, summonerID) | ||
.send({ | ||
from: walletFrom, |
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 not ok, to:
property does not exists
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.
it has to be only this syntax
safeTransferFrom(from, to, tokenId).send({ from : context.accounts[0]})
const handleOpenTransferModal = (e) => { | ||
e.preventDefault(); | ||
setIsOpenTransferModal(true); | ||
ReactTooltip.rebuild(); |
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 this rebuild?
if (summonerId != null) { | ||
const id = toast.loading("Deleting warrior..."); | ||
try { | ||
// await context.contract_base.methods |
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.
It has to be something like
.safeTransferFrom(context.accounts[0], "0x000000000000000000000000000000000000dEaD", tokenId)
.send({
from: context.accounts[0],
})
No description provided.