0xSpaceShard/starknet-hardhat-plugin

ContractAddress, ClassHash and EthAddress decoding

notV4l opened this issue · 1 comments

notV4l commented

Actually this types are handle as common numeric types :

const COMMON_NUMERIC_TYPES = [
"felt",
"core::felt252",
"core::integer::u8",
"core::integer::u16",
"core::integer::u32",
"core::integer::u64",
"core::integer::u128",
"core::starknet::contract_address::ContractAddress",
"core::starknet::class_hash::ClassHash",
"core::starknet::eth_address::EthAddress"
];

It could be converted to hex representation
ie :
3407481119780572850671182801001023516830125398818876583940565901076194792664 would decode to 0x78890e347461d95a8eacddaeb35b577f4ef29a6fbf825326d8d97022e2a14d8

Would make sense for ContractAddress, ClassHash and EthAddress. But this would be a breaking change.