-
Notifications
You must be signed in to change notification settings - Fork 483
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
Hotfix- How to get transaction hash when deploying smart contract #225
Comments
@joaquim-verges please support me |
@legiarung sorry for the late response. This is a feature that we have in our backlog and been wanting to expose for a while. I'll try to expose this for you this week, shouldn't take too long. The implementation will probably be an event listener that allows you to capture the tx hash of any deploy through the SDK. Would that work for you? |
@joaquim-verges |
@joaquim-verges I also need the transaction hash after deploying smart contract. Did you release that feature? |
Hi @haunguyenuit @legiarung - we've now released this feature to // Add deploy event transaction listener
sdk.deployer.addDeployListener((event) => {
// Hash of the deploy transaction
console.log(deploy.transactionHash);
// Address of the deployed contract
console.log(deploy.contractAddress);
});
// Now when we deploy, we'll get pinged in our listener
sdk.deployer.deployEdition(...); Let me know if you have any further questions |
ok, thanks @adam-maj |
Thank you sir, I have many issues for you but have not been answered yet. please help me check it. |
I check and see here you only return contract address.
My code:
You code :
deployNFTCollection(metadata: NFTContractDeployMetadata): Promise<string>;
Issues:
When many of my users use gasless, I want to save the information for customers to pay through Openzeplin. I don't see this function returning txHash but returning address.
But I see other functions like MintToken, SendToken, ... that return txid, like below.
My code get txid :
YouCode return txid:
mintBatch(metadata: NFTMetadataOrUri[]): Promise<TransactionResultWithId<NFTMetadataOwner>[]>;
Can you help me pay extra txID when deploying contract .
Thanks!!!
The text was updated successfully, but these errors were encountered: