add name getter
@@ -20,6 +20,10 @@ func (a *Account) Address() flow.Address {
return a.address
}
+func (a *Account) Name() string {
+ return a.name
+}
+
func (a *Account) DefaultKey() AccountKey {
return a.keys[0]
}
