File tree 2 files changed +12
-2
lines changed
packages/iota_identity/sources
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ module iota_identity::multicontroller {
51
51
/// and using `controllers` to set controllers: i.e. each `(recipient, voting power)`
52
52
/// in `controllers` results in `recipient` obtaining a `ControllerCap` with the
53
53
/// specified voting power.
54
- /// Controllers that should be able to delegate their access, should be passed through
54
+ /// Controllers that are able to delegate their access, should be passed through
55
55
/// `controllers_that_can_delegate` parameter.
56
56
public fun new_with_controllers <V >(
57
57
controlled_value: V ,
Original file line number Diff line number Diff line change @@ -85,14 +85,24 @@ impl UnmigratedAlias {
85
85
unreachable ! ( "alias was wrapped by us" )
86
86
} ;
87
87
// Get the ID of the `AliasOutput` that owns this `Alias`.
88
- let alias_output_id = client
88
+ let dynamic_field_wrapper = client
89
89
. read_api ( )
90
90
. get_object_with_options ( * alias. id . object_id ( ) , IotaObjectDataOptions :: new ( ) . with_owner ( ) )
91
91
. await
92
92
. map_err ( |e| Error :: RpcError ( e. to_string ( ) ) ) ?
93
93
. owner ( )
94
94
. expect ( "owner was requested" )
95
95
. get_owner_address ( )
96
+ . expect ( "alias is a dynamic field" )
97
+ . into ( ) ;
98
+ let alias_output_id = client
99
+ . read_api ( )
100
+ . get_object_with_options ( dynamic_field_wrapper, IotaObjectDataOptions :: new ( ) . with_owner ( ) )
101
+ . await
102
+ . map_err ( |e| Error :: RpcError ( e. to_string ( ) ) ) ?
103
+ . owner ( )
104
+ . expect ( "owner was requested" )
105
+ . get_owner_address ( )
96
106
. expect ( "alias is owned by an alias_output" )
97
107
. into ( ) ;
98
108
// Get alias_output's ref.
You can’t perform that action at this time.
0 commit comments