Skip to content

Smart contract fixes: address validation, balance key prefix, config + script cleanup#186

Merged
cjcchen merged 1 commit intoapache:masterfrom
Bismanpal-Singh:smart-contract-fixes
Sep 18, 2025
Merged

Smart contract fixes: address validation, balance key prefix, config + script cleanup#186
cjcchen merged 1 commit intoapache:masterfrom
Bismanpal-Singh:smart-contract-fixes

Conversation

@Bismanpal-Singh
Copy link
Contributor

Summary

  • GlobalState balance keying: Use contract_balance_<address> for GetBalance/SetBalance to avoid key collisions.
  • Input validation: Add strict EVM-style address checks (0x + 40 hex chars) to tool commands:
    • init owner address
    • execute caller and contract addresses
    • get_balance/set_balance addresses
  • New server config: Add service/tools/config/server/contract_server.config with local 4-node setup, LevelDB tuning, and consensus flags.
  • Script cleanup: Remove merge markers from start_contract_service.sh; retain license header and ensure clean startup.

@cjcchen cjcchen merged commit 3d0246f into apache:master Sep 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants