-
Notifications
You must be signed in to change notification settings - Fork 8
Simple multisig contracts for Tezos FA1.2 and FA2 tokens #88
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
base: master
Are you sure you want to change the base?
Conversation
multisig/tests/FA12tests.py
Outdated
|
|
||
| # multisig_wallet.transfer(sp.record(receiver = alice.address, amount = 10, tokenAddress = c1.address)).run(sender = admin.address) | ||
| # multisig_wallet.signAndExecute(0).run(sender = alice.address) | ||
| # multisig_wallet.recoverToken(sp.record(receiver = alice.address, amount = 10, tokenAddress = c1.address)).run(sender = admin.address) |
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.
Let's set the threshold to two and then test recovery.
gdsoumya
left a comment
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.
lgtm, have we deployed the contracts and tested them on testnet?
multisig/multisigFA12.py
Outdated
| make_burn = sp.contract(sp.TRecord(address = sp.TAddress, value= sp.TNat), self.data.transferMap[id].tokenAddress, "burn").open_some() | ||
| sp.transfer(sp.record(address = self.data.transferMap[id].sender, value = self.data.transferMap[id].amount), sp.tez(0), make_burn) |
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.
burn entry point may or may not be available in the old contracts, burn is supposed to be a normal transfer to the burn address
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.
so should I remove the burn function on the FA1.2?
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.
yes you can, but that just an example fa1.2 contract we already have the real token contracts deployed and I am pretty sure those don't have the burn function so change the multisig too.
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.
Yes ok I meant remove it on the FA1.2 multisig 👍
yes have have depoyed them on testnet, but I haven't tested all functionnalities. But the smartpy tests work |
Uh oh!
There was an error while loading. Please reload this page.