Skip to content

Commit 49a094b

Browse files
mcintyre94janniks
authored andcommitted
docs: add clarification to callReadOnlyFunction
It is possible to call any public function using `callReadOnlyFunction`, not only those defined with `(define-read-only)` This commit updates the docstring to make this more clear
1 parent 194442c commit 49a094b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/transactions/src/builders.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,8 @@ export interface ReadOnlyFunctionOptions {
12811281
}
12821282

12831283
/**
1284-
* Calls a read only function from a contract interface
1284+
* Calls a function as read-only from a contract interface
1285+
* It is not necessary that the function is defined as read-only in the contract
12851286
*
12861287
* @param {ReadOnlyFunctionOptions} readOnlyFunctionOptions - the options object
12871288
*

0 commit comments

Comments
 (0)