Skip to content

Commit 6b7ab72

Browse files
minor fixes
1 parent f1f7f9b commit 6b7ab72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

smart-accounts-kit/guides/delegation/use-delegation-scopes/function-call.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For example, Alice delegates to Bob the ability to call the `approve` function o
2222

2323
This scope requires `targets`, which specifies the permitted contract addresses, and `selectors`, which specifies the allowed methods.
2424

25-
Internally, this scope uses the [`allowedTargets`](../../../reference/delegation/caveats.md#allowedtargets), [`allowedMethods`](../../../reference/delegation/caveats.md#allowedmethods), [`valueLte`](../../../reference/delegation/caveats.md#valuelte) caveat enforcers, and
25+
Internally, this scope uses the [`allowedTargets`](../../../reference/delegation/caveats.md#allowedtargets), [`allowedMethods`](../../../reference/delegation/caveats.md#allowedmethods), and [`valueLte`](../../../reference/delegation/caveats.md#valuelte) caveat enforcers, and
2626
optionally uses the [`allowedCalldata`](../../../reference/delegation/caveats.md#allowedcalldata) or [`exactCalldata`](../../../reference/delegation/caveats.md#exactcalldata) caveat enforcers when those parameters are specified.
2727
See the [function call scope reference](../../../reference/delegation/delegation-scopes.md#function-call-scope) for more details.
2828

@@ -126,7 +126,7 @@ const delegation = createDelegation({
126126

127127
### Allow native token transfer
128128

129-
You can define `valueLte` to allow native token transfer. By default, this value is set to `0`. For example, Alice can allow Bob
129+
You can set `valueLte` to allow native token transfer up to a specified amount per call. By default, this value is set to `0`. For example, Alice can allow Bob
130130
to take `0.00001` ETH as a fee each time he revokes a token approval on her behalf.
131131

132132
```ts

smart-accounts-kit/reference/delegation/delegation-scopes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Defines the specific methods, contract addresses, and calldata that are allowed
302302
| `selectors` | `MethodSelector[]` | Yes | The list of method selectors that the delegate is allowed to call. The selector value can be 4-byte hex string, ABI function signature, or ABI function object. |
303303
| `allowedCalldata` | `AllowedCalldataBuilderConfig[]` | No | The list of calldata the delegate is allowed to call. It doesn't support multiple selectors. Each entry in the list represents a portion of calldata corresponding to the same function signature. You can include or exclude specific parameters to define what parts of the calldata are valid. Cannot be used together with `exactCalldata`. |
304304
| `exactCalldata` | `ExactCalldataBuilderConfig` | No | The calldata the delegate is allowed to call. Cannot be used together with `allowedCalldata`. |
305-
| `valueLte` | `ValueLteBuilderConfig` | No | The maximum amount of native tokens that can be transferred by delegate. By default, the amount is set to `0`. |
305+
| `valueLte` | `ValueLteBuilderConfig` | No | The maximum native token amount the delegate can transfer. By default, the amount is set to `0`. |
306306

307307
#### Example
308308

0 commit comments

Comments
 (0)