Skip to content

Commit

Permalink
🎨 change snippet from solidity -> javascript + prettiered
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboudjem committed Dec 8, 2023
1 parent cf4d8aa commit c899a7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorials/sessionkeys/sessionvalidationmodule.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The smart contract we focus on is structured to validate user operations (userOp
**Technical Deep Dive**: The following contract breakdown is technical in nature, aimed at developers with a solid understanding of smart contract functionalities.
:::

```solidity
```javascript
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
import "./ISessionValidationModule.sol";
Expand Down Expand Up @@ -116,8 +116,8 @@ Here's the Solidity contract in question:
This function is essential for **validating user operations** against **session key permissions** and ensuring they are correctly signed.
:::

```solidity
/**
```javascript
/**
* @dev validates if the _op (UserOperation) matches the SessionKey permissions
* and that _op has been signed by this SessionKey
* Please mind the decimals of your exact token when setting maxAmount
Expand Down Expand Up @@ -197,8 +197,8 @@ This function is essential for **validating user operations** against **session
This function plays a vital role in **batch session validation**, ensuring each operation aligns with the set session key permissions. It's key for processing multiple operations efficiently.
:::

```solidity
/**
```javascript
/**
* @dev validates that the call (destinationContract, callValue, funcCallData)
* complies with the Session Key permissions represented by sessionKeyData
* @param destinationContract address of the contract to be called
Expand Down

0 comments on commit c899a7b

Please sign in to comment.