Skip to content

Commit

Permalink
Update 'abstract contract Exttload' (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostin0x authored Dec 20, 2024
1 parent 5728357 commit 52e902b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/contracts/v4/guides/07-read-pool-state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ Moreover, using `extsload` instead of hand-written Solidity view functions lower
### TransientStateLibrary and `exttload`

```solidity
abstract contract Extsload is IExtsload {
/// @inheritdoc IExtsload
function extsload(bytes32 slot) external view returns (bytes32) {
abstract contract Exttload is IExttload {
/// @inheritdoc IExttload
function exttload(bytes32 slot) external view returns (bytes32) {
assembly ("memory-safe") {
mstore(0, sload(slot))
mstore(0, tload(slot))
return(0, 0x20)
}
}
Expand Down Expand Up @@ -260,4 +260,4 @@ Global fee growth is essential for several advanced operations:

---

For additional reference, see [`StateLibrary`](/contracts/v4/reference/core/libraries/StateLibrary) and [`Extsload`](/contracts/v4/reference/core/Extsload)
For additional reference, see [`StateLibrary`](/contracts/v4/reference/core/libraries/StateLibrary) and [`Extsload`](/contracts/v4/reference/core/Extsload)

0 comments on commit 52e902b

Please sign in to comment.