aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Feature Request] Automatically split transactions and Submit transactions for cli, or Increase MAX_TRANSACTION_SIZE

Open uvd opened this issue 1 year ago • 3 comments

🚀 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

uvd avatar Oct 06 '22 03:10 uvd

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.

wrwg avatar Oct 06 '22 03:10 wrwg

move publish --included-artifacts=none this is ok, I try to split my package

uvd avatar Oct 06 '22 06:10 uvd

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?

the-fool avatar Oct 18 '22 14:10 the-fool

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.

github-actions[bot] avatar Dec 23 '22 01:12 github-actions[bot]