Skip to content

Commit

Permalink
♻️ Change decimals to view (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized authored Apr 5, 2024
1 parent feee4b3 commit c81aeb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ DN404MirrorTest:testNameAndSymbol(string,string) (runs: 258, μ: 206468, ~: 2069
DN404MirrorTest:testNotLinked() (gas: 12777)
DN404MirrorTest:testPullOwner() (gas: 112613)
DN404MirrorTest:testPullOwnerWithOwnable() (gas: 3289101)
DN404MirrorTest:testSafeTransferFrom(uint32) (runs: 258, μ: 465942, ~: 465938)
DN404MirrorTest:testSafeTransferFrom(uint32) (runs: 258, μ: 465944, ~: 465938)
DN404MirrorTest:testSetAndGetApprovalForAll() (gas: 325486)
DN404MirrorTest:testSetAndGetApproved() (gas: 322728)
DN404MirrorTest:testSupportsInterface() (gas: 7544)
DN404MirrorTest:testTokenURI(string,uint256) (runs: 258, μ: 157416, ~: 135217)
DN404MirrorTest:testTransferFrom(uint32) (runs: 258, μ: 366989, ~: 366980)
DN404MirrorTest:testTransferFrom(uint32) (runs: 258, μ: 366988, ~: 366980)
DN404MirrorTest:testTransferFromMixed(uint256) (runs: 258, μ: 684731, ~: 643712)
DN404MirrorTest:test__codesize() (gas: 55040)
DN404OnlyERC20Test:testApprove() (gas: 35803)
Expand Down
2 changes: 1 addition & 1 deletion src/DN404.sol
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ abstract contract DN404 {
/// @dev Returns the decimals places of the token. Defaults to 18.
/// Does not affect DN404's internal calculations.
/// Will only affect the frontend UI on most protocols.
function decimals() public pure virtual returns (uint8) {
function decimals() public view virtual returns (uint8) {
return 18;
}

Expand Down

0 comments on commit c81aeb5

Please sign in to comment.