Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
57 stars 35 forks source link

Add a procedural macro (function macro) to parse addresses #345

Closed abizjak closed 6 months ago

abizjak commented 1 year ago

Task description

It is sometimes necessary to embedd account addresses to the contract. It is natural to use account addresses as strings, but this incurs a parsing penalty.

We should have a marco account!("3uwefxKehkxxe4u5C8krefjDpsWXSn7U2snwubnVs1uFrMyx95") that would parse the account and make a 32-byte array.