mirror of
https://github.com/trezor/blockbook.git
synced 2026-02-20 00:51:39 +01:00
chore(blockbook): rename type to standard
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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])),
|
||||
|
||||
Reference in New Issue
Block a user