Comments (4)
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.
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.
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.
I think reason is feeLimit
option. I had same error but once i removed feeValue
migration was successful.
from tron-box.
Related Issues (20)
- Smart Contract deployed on testnet shasta not getting searched.
- OUT_OF_ENERGY HOT 2
- npm WARN tarball tarball data for tronbox@latest (sha512-hv4iQVmxUvhVkzfJc5YOew7aV0dJ+oE531hf+FLnvDs7CliP2T9gSoaM2xuKvbT7tVUJu0oGuQya/+gKaAnXCQ==) seems to be corrupted. Trying one more time. HOT 1
- Contract function call return txID instead of value HOT 1
- Will someone please explain this to me? HOT 1
- cannot compile and migrate HOT 1
- Compile command error HOT 9
- tronbox migrate error HOT 7
- deploy error HOT 2
- When TRC10 support? HOT 2
- tronbox version; tronbox compile Invalid member of stdlib error HOT 1
- Tronbox migrate error - cannot connect to TronWeb HOT 3
- Can't even get tronbox in terminal HOT 1
- tronbox migrate --reset --network shasta msg killed HOT 3
- tronbox init FAILS on Windows 10 HOT 3
- Cannot test sending TRX to contract method HOT 2
- ERROR: NOT_ENOUGH_EFFECTIVE_CONNECTION (effective connection:0 lt minEffectiveConnection:1) while broadcasting the transaction to create the contract Migrations HOT 2
- tronbox.js can't compile? HOT 1
- "PayloadTooLargeError: request entity too large" when run "tronbox test" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tron-box.