Skip to content

Abstract hardcoded test account addresses out of README and deployment scripts #729

Description

@nanaf6203-bit

Problem Statement

README.md references CONTRACT_ACCOUNT=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY in the env example. Other scripts use bare addresses.

Why it matters

Hardcoding a single dev account in README encourages reuse in production.

Technical Context

Use SURI=//Alice and node-key derivation; document polkadot-js flow.

Expected Outcome

README env example derives an account from SURI; scripts pull from .env.

Acceptance Criteria

  1. grep -r '5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY' . returns 0 in production files.
  2. README has an updated .env.example.
  3. Scripts source .env.

Implementation Notes

Sed-replace + update README.

Files or modules likely to be affected

README.md, scripts/deploy.sh, scripts/build.sh.

Dependencies

None.

Difficulty level

EASY.

Estimated effort

XS (~30 min).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions