diff --git a/docs/contracts/v4/guides/07-read-pool-state.mdx b/docs/contracts/v4/guides/07-read-pool-state.mdx index bdb08fc3f..130da2c44 100644 --- a/docs/contracts/v4/guides/07-read-pool-state.mdx +++ b/docs/contracts/v4/guides/07-read-pool-state.mdx @@ -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) } } @@ -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) \ No newline at end of file +For additional reference, see [`StateLibrary`](/contracts/v4/reference/core/libraries/StateLibrary) and [`Extsload`](/contracts/v4/reference/core/Extsload)