Skip to content

fix: add --no-compile to account scripts to skip unnecessary compilation#1252

Open
Skywalkingzulu1 wants to merge 3 commits into
scaffold-eth:mainfrom
Skywalkingzulu1:fix/account-no-compile
Open

fix: add --no-compile to account scripts to skip unnecessary compilation#1252
Skywalkingzulu1 wants to merge 3 commits into
scaffold-eth:mainfrom
Skywalkingzulu1:fix/account-no-compile

Conversation

@Skywalkingzulu1
Copy link
Copy Markdown

Problem

Running yarn account, yarn generate, or yarn account:import triggers a full Hardhat compilation every time, even though these scripts don't need compiled artifacts.

Solution

Added --no-compile flag to all account-related scripts in package.json.

Scripts changed

  • account: hardhat run --no-compile scripts/listAccount.ts
  • account:generate: hardhat run --no-compile scripts/generateAccount.ts
  • account:import: hardhat run --no-compile scripts/importAccount.ts
  • account:reveal-pk: hardhat run --no-compile scripts/revealPK.ts

Closes #1127

Andile Sizophila Mchunu added 3 commits March 21, 2026 22:59
Changed the contract creation bytecode prefix check from 0x60e06040
to 0x6080604 to match the standard Solidity init code.

Standard Solidity init code starts with PUSH1 0x80 PUSH1 0x40 MSTORE
(0x60806040), not 0x60e06040.

This fixes the block explorer showing contract creation transactions
as 'Unknown' instead of properly detecting them.

Closes scaffold-eth#1246
- Refactored to use loadFixture pattern for test isolation
- Added tests for: premium, totalCounter, userGreetingCounter
- Added tests for withdraw() with owner/non-owner
- Added tests for receive() function
- Added event emission tests for GreetingChange
- Total: 12 tests covering all contract functions

Closes scaffold-eth#1206
Account-related scripts (account, account:generate, account:import,
account:reveal-pk) were triggering full Hardhat compilation every time.
Added --no-compile flag since these scripts don't need compilation.

Closes scaffold-eth#1127
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.

yarn account - compiles every time

1 participant