Giter VIP home page Giter VIP logo

Comments (4)

berar avatar berar commented on June 30, 2024

Alright, I've been going deeper at this.

Now I run:
docker run -it -p 9090:9090 -e "useDefaultPrivateKey=true" --rm --name tron trontools/quickstart

So the first address is da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0 with about 10 billion TRX or so.

I've been reducing the contract's code quite a bit. It used to be over 10K bytes.

When the bytecode value is less than 5K bytes (contract size), then it migrates. So that means that then it is being deployed with some functions commented out.

Also, there is some computation that is occurring in the constructor. The same error is shown if those lines of code are left there, even though bytecode value is < 5K bytes. So I moved those LOC into a separate function.

I'll keep going at this. But this isn't looking promising as it leads to believe that there is quite a limit to the amount of computation for triggering smart contracts.

Pretty sure that I'll get to deploy full code if I split it in a few contracts. But that constructor issue is bothering as it leads to assume that the same error will appear as the contract is being tested.

from tron-box.

sullof avatar sullof commented on June 30, 2024

The private key used by Tron Quickstart cannot be changed. If not the deployment fails. You must stick with it.
Anyway, did you solve your problem?

from tron-box.

berar avatar berar commented on June 30, 2024

No. It's not a tronbox issue though, as it seems like that there is a limit to computations/energy tron quick start can do.

When the contract is deployed to testnet, it's fine.

Didn't want to dive more deeply into it. To resolve it, you'd need to look into those limits or split the contract into many smaller ones (libraries).

from tron-box.

ProtonGustave avatar ProtonGustave commented on June 30, 2024

I think reason is feeLimit option. I had same error but once i removed feeValue migration was successful.

from tron-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.