You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this is a bit out of scope. But I'm trying to build a feature where the deployer of a contract can upload meta-data to the deployment to aztecscan.xyz . To streamline this for the deployers I was thinking that they could use the wallet-class that's provided from aztec.js. Here is the pseudo-code:
constaccount=awaitgetSchnorrAccount(...);constwallet=account.getWallet();awaitEasyPrivateVotingContract.deploy(wallet,votingAdmin).send();constmetadataPayload={deployersNote: "I did this",deployersGithub: "[url]"};constsignedMsg=wallet.sign(JSON.stringify(metadataPayload));// send the signedMsg and metadataPayload to API for verification
The text was updated successfully, but these errors were encountered:
wouldn't this break the fungibility between "Token contract deployed by Alice" and "Token contract deployed by Bob"? is this feature instance related, or contract class related?
for reference, in Etherscan, the 1st person to "create a contract class" does have the power to add the comments they like in the bytecode, since every subsequent contract deployed with the same bytecode will inherit the comments as well (and perhaps banners)
this isn't enforced by the "deployer" but on a "first come first serve" manner
@wei3erHase I was thinking that you should be able to add meta-data to both an instance and a contract class.
With comments in the bytecode, you mean the source code? Currently we only have functionality for uploading the artifact, not the source code. But you have a point. This could be one approach.
Perhaps this is a bit out of scope. But I'm trying to build a feature where the deployer of a contract can upload meta-data to the deployment to aztecscan.xyz . To streamline this for the deployers I was thinking that they could use the wallet-class that's provided from
aztec.js
. Here is the pseudo-code:The text was updated successfully, but these errors were encountered: