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

Page with Asset creation would be perfect to help people understand better #1

Open
JoseRodrigues443 opened this issue Jan 25, 2022 · 1 comment

Comments

@JoseRodrigues443
Copy link

No description provided.

@JoseRodrigues443
Copy link
Author

Great Project, however, I'm having difficulty creating a page that creates an asset, to then use the fetch page to see my created assets, could you help?

Currently, the code is:

const tokenParams = [
        'NFTFF', // token name
        'NFF', // token symbol
        metamaskAccountAddress, // new owner
      ];
      
      const tokenInstance = new web3Info.eth.Contract(LSP8Mintable.abi as any, undefined, {
        gas: 5_000_000,
        gasPrice: '1000000000',
      });

      const deployedContract = await tokenInstance
      .deploy({ data: LSP8Mintable.bytecode, arguments: tokenParams })
      .send({ from: metamaskAccountAddress});

      const mintedToken = await deployedContract.methods
      .mint(contractAddress, tokenIdAsBytes32(1), false, "0x")
      .send({ from: metamaskAccountAddress});

I think is because of the profile created on the page having no support in the ERC725 keys

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

No branches or pull requests

1 participant