Skip to content

Commit 9ac18ae

Browse files
committed
add some code marks
1 parent b2abff2 commit 9ac18ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/build/guides/auth/contract-authorization.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ By using `env.current_contract_address()`, we can get the invoker's address and
335335

336336
Custom account contracts are contracts that implement a special reserved function for validating externally provided signatures within the respective authorization context. The custom account contracts are essentially regular contracts, with an added capability to verify externally provided authorization.
337337

338-
### \_\_check_auth()
338+
### `\_\_check_auth()`
339339

340340
A contract that implements the `CustomAccountInterface` for authorizing calls becomes a custom account contract. The interface contains a single function called `__check_auth()`. The function is a reserved function, and it is invoked automatically by the Host when a contract authorizes a transaction. It cannot be called manually.
341341

@@ -434,7 +434,7 @@ The test script creates a signer and a random payload. The contract function `in
434434

435435
As this test case shows, `testing __check_auth()` is very simple using `try_invoke_contract_check_auth`, and it’s the recommended method of testing authorization `with __check_auth()`. See the simple account example for the full test code.
436436

437-
#### set_auths()
437+
#### `set_auths()`
438438

439439
:::Note
440440

0 commit comments

Comments
 (0)