chore(blockbook): rename type to standard

This commit is contained in:
Martin Boehm
2025-01-17 17:06:14 +01:00
parent 9feda1a857
commit cddbf7228a
18 changed files with 135 additions and 128 deletions

View File

@@ -132,7 +132,7 @@ var Block1SpecificData = &bchain.EthereumBlockSpecificData{
Contracts: []bchain.ContractInfo{
{
Contract: EthAddrContract4a,
Type: bchain.ERC20TokenType,
Standard: bchain.ERC20TokenStandard,
Name: "Contract 74",
Symbol: "S74",
Decimals: 12,

View File

@@ -120,7 +120,7 @@ func (c *fakeBlockChainEthereumType) EthereumTypeGetNonce(addrDesc bchain.Addres
func (c *fakeBlockChainEthereumType) GetContractInfo(contractDesc bchain.AddressDescriptor) (*bchain.ContractInfo, error) {
addresses, _, _ := c.Parser.GetAddressesFromAddrDesc(contractDesc)
return &bchain.ContractInfo{
Type: bchain.ERC20TokenType,
Standard: bchain.ERC20TokenStandard,
Contract: addresses[0],
Name: "Contract " + strconv.Itoa(int(contractDesc[0])),
Symbol: "S" + strconv.Itoa(int(contractDesc[0])),