Skip to content

Commit cfbf698

Browse files
authored
docs: fix inconsistencies in DelegateContractId.h (#1285)
Signed-off-by: freya-docs <freya.docs.pp@gmail.com>
1 parent 2d1d8d2 commit cfbf698

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sdk/main/include/DelegateContractId.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class DelegateContractId : public ContractId
5555
*
5656
* @param id The contract ID string from which to construct.
5757
* @return The constructed DelegateContractId object.
58+
* @throws std::invalid_argument If the input string is malformed or the type of <num> cannot be determined.
5859
*/
5960
[[nodiscard]] static DelegateContractId fromString(std::string_view id);
6061

@@ -68,9 +69,9 @@ class DelegateContractId : public ContractId
6869
[[nodiscard]] static DelegateContractId fromSolidityAddress(std::string_view address);
6970

7071
/**
71-
* Construct an DelegateContractId object from an DelegateContractId protobuf object.
72+
* Construct a DelegateContractId object from a DelegateContractId protobuf object.
7273
*
73-
* @param proto The DelegateContractId protobuf object from which to create an DelegateContractId object.
74+
* @param proto The DelegateContractId protobuf object from which to create a DelegateContractId object.
7475
* @return The constructed DelegateContractId object.
7576
*/
7677
[[nodiscard]] static DelegateContractId fromProtobuf(const proto::ContractID& id);
@@ -79,7 +80,7 @@ class DelegateContractId : public ContractId
7980
* Construct a DelegateContractId object from a representative byte array.
8081
*
8182
* @param bytes The byte array from which to construct a DelegateContractId object.
82-
* @return The constructed ContractId object.
83+
* @return The constructed DelegateContractId object.
8384
*/
8485
[[nodiscard]] static DelegateContractId fromBytes(const std::vector<std::byte>& bytes);
8586

0 commit comments

Comments
 (0)