Hello, in my company we are investigating how to add Hedera to our marketplace and I have doubts on how to implement it.
In my first place we have a factory contract, and on the other hand the token contract, an ERC721.
Is there any example of how to do this? I have tried using the SDK with the account I created, but it tells me that the contract exceeds the allowed limit.
The Discord forum talks about splitting the contract into small chunks, but I haven't found an example of how to do it.
Any suggestions or examples?

thanks

Jun 26, 2022, 1:55 PM
Some logic part should be moved to another contract.sol and on the original one, you define interfaces
Or simply inherit from it
Depends on what you need. To reduce contract size also activate optimizations on compiler
Jun 26, 2022, 1:58 PM
Yes, that would be the other alternative. The issue is that the contract as it stands is deployed on 4 blockchains. What I am saying is that I have seen that there is talk of dividing the file into several.
Jun 26, 2022, 1:59 PM
View contract as classes and functions as functions. Instead of writing all the classes into one, split every class into a contract, then import all on the main contract and inherit all
Jun 26, 2022, 2:03 PM
But that is not what I am asking. I mean something else, splitting the compiled file into several as discussed in the Hedera discord forum.
Thanks anyway.
Jun 26, 2022, 2:04 PM
O.o
Jun 26, 2022, 2:07 PM
I found the documentation I needed, at least that's something.
I leave it for those who can use it

https://docs.hedera.com/guides/docs/sdks/file-storage/create-a-file
Jun 26, 2022, 2:10 PM

© 2024 Draquery.com All rights reserved.