Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions content/battlechain/quickstart/deploy-first-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,13 @@ cast nonce --rpc-url https://testnet.battlechain.com:3051 <your-wallet-address>
### Transaction rejected: EIP-1559 not supported

If you see an error like `transaction type not supported` or `only legacy transactions allowed`, add `--legacy` to your `forge script` command. See the warning above in Step 1.

### Contract too large to deploy

BattleChain enforces the standard EVM contract size limit of 24,576 bytes (EIP-170). If deployment fails with a size-related error, enable the Solidity optimizer in `foundry.toml`:

```toml
[profile.default]
optimizer = true
optimizer_runs = 200
```
12 changes: 12 additions & 0 deletions content/battlechain/tutorials/deploying-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ remappings = [
]
```

<Warning>
**Contract size limit: 24,576 bytes**

BattleChain enforces the standard EVM contract size limit (EIP-170). If your compiled bytecode exceeds 24,576 bytes, deployment will fail. Enable the Solidity optimizer in `foundry.toml` to reduce bytecode size:

```toml
[profile.default]
optimizer = true
optimizer_runs = 200
```
</Warning>

### Deploy with helpers

Inherit `BCDeploy` (deploy only) or `BCScript` (deploy + agreement + attack mode):
Expand Down
64 changes: 64 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.