Skip to content
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

XRC721 how to using Truffle #49

Merged
merged 11 commits into from
Oct 3, 2022
Merged

XRC721 how to using Truffle #49

merged 11 commits into from
Oct 3, 2022

Conversation

yash0501
Copy link
Contributor

This PR is in response the issue #35

@WalterBlueu
Copy link
Contributor

I am getting an error on the "import" commands in the XRC721.sol file:

image

image

Not sure what steps are to fix this issue.

@mogithehurt
Copy link
Contributor

@yash0501
Copy link
Contributor Author

I have updated the code for the contracts. They would work fine now.

@WalterBlueu
Copy link
Contributor

@yash0501 thank you, that solved the problem. We are now up against the same verification issue as we saw with Remix. Give me a few hours to see if I can get more information on this issue from BlocksScan.

@WalterBlueu
Copy link
Contributor

@yash0501 BlocksScan pointed me to this tutorial on flattening the dependencies from OpenZeppelin: https://www.xdc.dev/ivan_blocksscan/learn-how-to-flatten-a-smart-contract-and-verify-on-blocksscan-56on

@WalterBlueu
Copy link
Contributor

I don't know if this tool is what you need for Truffle, but it looks like updating the how-to to use a tool like this to flatten the smart contract will get the job done: https://www.npmjs.com/package/truffle-flattener

@yash0501
Copy link
Contributor Author

Okay, I will check it out and try to flatten the smart contract to verify it on blockscan

@WalterBlueu WalterBlueu merged commit aef19ff into XDC-Community:main Oct 3, 2022
libengd pushed a commit to libengd/xdc-docs that referenced this pull request Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants