starknet-foundry icon indicating copy to clipboard operation
starknet-foundry copied to clipboard

Return `Result` in `stark_sign_message` and `ecdsa_sign_message` cheatcodes

Open Draggu opened this issue 9 months ago • 0 comments

Which components does the task require to be changed? (think hard pls)

snforge

Description

cheatcode::<'stark_sign_message'>() and cheatcode::<'ecdsa_sign_message'>() currently panic with 'invalid secret_key' or 'message_hash out of range', we should return Result instead.

Draggu avatar May 15 '24 16:05 Draggu