aptos-core
aptos-core copied to clipboard
[Feature Request] Automatically split transactions and Submit transactions for cli, or Increase MAX_TRANSACTION_SIZE
🚀 Feature Request
add an automatic subpackage for cli, or increase MAX_TRANSACTION_SIZE
Motivation
My package is over the limit
package size 81942 bytes
{
"Error": "API error: API error Error(VmError): Invalid transaction: Type: Validation Code: EXCEEDED_MAX_TRANSACTION_SIZE"
}
Pitch
Describe the solution you'd like
Describe alternatives you've considered
Are you willing to open a pull request? (See CONTRIBUTING)
Additional context
Are you able to work around this with move publish --included-artifacts=none ...
?
Another options is perhaps splitting your code into smaller packages.
Allowing incremental publishing is on the todo list, but not sure when it will come.
move publish --included-artifacts=none this is ok, I try to split my package
One issue is with local testing. I need to deploy everything to the local testnet, and it's easiest to include all artifacts in one transaction (as there are many 3rd party dependencies, such as "AptosFramework").
What about increasing MAX_TRANSACTION_SIZE for the local testnet only?
This issue is stale because it has been open 45 days with no activity. Remove the stale
label or comment - otherwise this will be closed in 15 days.