File tree 1 file changed +14
-2
lines changed
core/vm/actor/builtin/states/verified_registry
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,27 @@ namespace fc::vm::actor::builtin::states {
25
25
26
26
/* *
27
27
* @param address must be an id address
28
- * @return data cap for the given address
28
+ * @return data cap of the client for the given address
29
29
*/
30
- outcome::result<boost::optional<DataCap>> getVerifiedClientDataCap (
30
+ inline outcome::result<boost::optional<DataCap>> getVerifiedClientDataCap (
31
31
const Address &address) const {
32
32
if (!address.isId ()) {
33
33
return ERROR_TEXT (" Can only look up ID addresses" );
34
34
}
35
35
return verified_clients.tryGet (address);
36
36
}
37
+
38
+ /* *
39
+ * @param address must be an id address
40
+ * @return data cap of the verifier for the given address
41
+ */
42
+ inline outcome::result<boost::optional<DataCap>> getVerifierDataCap (
43
+ const Address &address) const {
44
+ if (!address.isId ()) {
45
+ return ERROR_TEXT (" Can only look up ID addresses" );
46
+ }
47
+ return verifiers.tryGet (address);
48
+ }
37
49
};
38
50
39
51
using VerifiedRegistryActorStatePtr =
You can’t perform that action at this time.
0 commit comments