Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Conversation

@LeilaWang
Copy link
Collaborator

Summary

This PR fixes the issue that calling zkAsset.send will fail for various reasons.

Description

  1. Wrong contract artifact for account registry
    The new confidentialTransferFrom has 6 parameters while the old one only has 5. Updating the contract artifacts from Behaviour20200220 to Behaviour20200305 in config/contracts/development and config/contracts/production fixes this.

  2. Invalid bytes value
    The 6th parameter in confidentialTransferFrom was assigned an empty string as default value. Should be 0x.

  3. Wrong return data from MetaMaskService
    The old metamask.eip712.signProof api in MetaMaskService returned { signature }. It was changed to { signature1, signature2 }. But the function in ui that calls this api was still catching data as { signature }. So both signature1, signature2 were empty at the time we called confidentialTransferFrom, causing it to throw an error "sender does not have approval to spend input note".

Types of changes

Bug fix (non-breaking change which fixes an issue)

@LeilaWang LeilaWang requested review from ArnSch and joeandrews March 20, 2020 21:44
@joeandrews joeandrews merged commit 13f1969 into develop Mar 20, 2020
@ArnSch
Copy link
Contributor

ArnSch commented Mar 24, 2020

🎉 This PR is included in version 1.22.0 🎉

Your semantic-release bot 📦🚀

@ArnSch
Copy link
Contributor

ArnSch commented Jul 23, 2020

🎉 This PR is included in version 0.18.1 🎉

Your semantic-release bot 📦🚀

@ArnSch
Copy link
Contributor

ArnSch commented Jul 23, 2020

🎉 This PR is included in version 1.7.1 🎉

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants