Skip to content

Commit

Permalink
fix: add more ledger compat types/const/func
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney committed Aug 26, 2024
1 parent 7463b05 commit 0af4b59
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ledger/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ func NewBlake2b256(data []byte) Blake2b256 {
type Address = common.Address
type AddrKeyHash = common.AddrKeyHash

func NewAddress(addr string) (Address, error) {
return common.NewAddress(addr)
}
const (
AddressTypeScriptNone = common.AddressTypeScriptNone
AddressTypeKeyNone = common.AddressTypeKeyNone
AddressTypeKeyKey = common.AddressTypeKeyKey
)

var (
NewAddress = common.NewAddress
NewAddressFromParts = common.NewAddressFromParts
)

// Governance types
type VotingProcedure = common.VotingProcedure
Expand Down

0 comments on commit 0af4b59

Please sign in to comment.