Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/foundry/lib/forge-std/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ See the contract itself for all error codes.
```solidity

import "forge-std/Test.sol";

contract TestContract is Test {
ErrorsTest test;

Expand All @@ -38,8 +37,9 @@ contract TestContract is Test {

contract ErrorsTest {
function arithmeticError(uint256 a) public {
uint256 a = a - 100;
a = a - 100;
}

}
```

Expand All @@ -63,7 +63,6 @@ struct T {

```solidity
import "forge-std/Test.sol";

contract TestContract is Test {
using stdStorage for StdStorage;

Expand Down
2 changes: 1 addition & 1 deletion packages/foundry/lib/forge-std/src/safeconsole.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity >=0.6.2 <0.9.0;
library safeconsole {
uint256 constant CONSOLE_ADDR = 0x000000000000000000000000000000000000000000636F6e736F6c652e6c6f67;

// Credit to [0age](https://twitter.com/z0age/status/1654922202930888704) and [0xdapper](https://github.com/foundry-rs/forge-std/pull/374)
// Credit to [0age](https://x.com/z0age/status/1654922202930888704) and [0xdapper](https://github.com/foundry-rs/forge-std/pull/374)
// for the view-to-pure log trick.
function _sendLogPayload(uint256 offset, uint256 size) private pure {
function(uint256, uint256) internal view fnIn = _sendLogPayloadView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity >=0.6.2 <0.9.0;
library safeconsole {
uint256 constant CONSOLE_ADDR = 0x000000000000000000000000000000000000000000636F6e736F6c652e6c6f67;

// Credit to [0age](https://twitter.com/z0age/status/1654922202930888704) and [0xdapper](https://github.com/foundry-rs/forge-std/pull/374)
// Credit to [0age](https://x.com/z0age/status/1654922202930888704) and [0xdapper](https://github.com/foundry-rs/forge-std/pull/374)
// for the view-to-pure log trick.
function _sendLogPayload(uint256 offset, uint256 size) private pure {
function(uint256, uint256) internal view fnIn = _sendLogPayloadView;
Expand Down