foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
308 stars 150 forks source link

Assert addresses lengths when printing them out #2088

Open THenry14 opened 5 months ago

THenry14 commented 5 months ago

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

sncast

Description

Let's make sure the addresses we print out (eg after creating an account) always have correct lengths. We should adjust current code to prepend addresses with zeros before printing them out, if the length is less than 63 (as specifiec in strarknet-spec)