Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Use symbolic constants in actor export tables #1263

Open
@zgfzgf

Description

Variables should be used
MethodsAccount.PubkeyAddress instead of 2

func (a Actor) Exports() []interface{} {
return []interface{}{
1: a.Constructor,
2: a.PubkeyAddress,
}
}

var MethodsAccount = struct {
Constructor abi.MethodNum
PubkeyAddress abi.MethodNum
}{MethodConstructor, 2}

Metadata

Assignees

No one assigned

    Labels

    cleanupTechnical debt recovery and other cleanup workdiscussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions