Skip to content

Commit

Permalink
🧹 Tidy v0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Jan 14, 2024
1 parent e0eb80a commit 06a21be
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DagonTest:testBurn(address,uint96) (runs: 256, ΞΌ: 153055, ~: 153055)
DagonTest:testDeploy() (gas: 2216130)
DagonTest:testFailBurnOverBalance(address,uint96) (runs: 256, ΞΌ: 187448, ~: 188692)
DagonTest:testFailBurnOverThreshold(address,uint96) (runs: 256, ΞΌ: 218700, ~: 219944)
DagonTest:testFailBurnOverBalance(address,uint96) (runs: 256, ΞΌ: 187603, ~: 188692)
DagonTest:testFailBurnOverThreshold(address,uint96) (runs: 256, ΞΌ: 218855, ~: 219944)
DagonTest:testFailInvalidThresholdExceedsSupply() (gas: 159135)
DagonTest:testFailInvalidThresholdExceedsSupply2() (gas: 164270)
DagonTest:testFailInvalidThresholdNull() (gas: 159183)
Expand All @@ -13,8 +13,8 @@ DagonTest:testFailIsValidSignatureWeightedERC20() (gas: 240854)
DagonTest:testFailIsValidSignatureWeightedERC6909() (gas: 232746)
DagonTest:testFailIsValidSignatureWeightedERC721() (gas: 211709)
DagonTest:testFailSetTokenInvalidStd(address) (runs: 256, ΞΌ: 158177, ~: 158177)
DagonTest:testFailTransferFromInactiveAuth(address,address,uint96) (runs: 256, ΞΌ: 192049, ~: 192905)
DagonTest:testFailTransferOverBalance(address,address,uint96) (runs: 256, ΞΌ: 186557, ~: 187413)
DagonTest:testFailTransferFromInactiveAuth(address,address,uint96) (runs: 256, ΞΌ: 192205, ~: 192905)
DagonTest:testFailTransferOverBalance(address,address,uint96) (runs: 256, ΞΌ: 186713, ~: 187413)
DagonTest:testInstall() (gas: 137488)
DagonTest:testIsValidSignature() (gas: 150964)
DagonTest:testIsValidSignature2of3() (gas: 197468)
Expand All @@ -30,5 +30,5 @@ DagonTest:testSetAuth(address) (runs: 256, ΞΌ: 145752, ~: 145752)
DagonTest:testSetThreshold() (gas: 147633)
DagonTest:testSetToken(address) (runs: 256, ΞΌ: 148425, ~: 148425)
DagonTest:testSetURI() (gas: 165155)
DagonTest:testTransfer(address,address,uint88) (runs: 256, ΞΌ: 175912, ~: 177001)
DagonTest:testTransferWithAuth(address,address,uint96) (runs: 256, ΞΌ: 180161, ~: 180949)
DagonTest:testTransfer(address,address,uint88) (runs: 256, ΞΌ: 176068, ~: 177001)
DagonTest:testTransferWithAuth(address,address,uint96) (runs: 256, ΞΌ: 180229, ~: 180949)
2 changes: 1 addition & 1 deletion lib/accounts
2 changes: 1 addition & 1 deletion lib/forge-std
Submodule forge-std updated 4 files
+1 βˆ’1 package.json
+5 βˆ’1 src/StdChains.sol
+15 βˆ’8 src/Vm.sol
+2 βˆ’2 test/StdUtils.t.sol
2 changes: 1 addition & 1 deletion lib/solady
2 changes: 1 addition & 1 deletion src/Dagon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ contract Dagon is ERC6909 {

/// @dev Returns validated signature result within the conventional ERC1271 syntax.
function _validateReturn(bool success) internal pure virtual returns (bytes4 result) {
assembly {
assembly ("memory-safe") {
// `success ? bytes4(keccak256("isValidSignature(bytes32,bytes)")) : 0xffffffff`.
result := shl(224, or(0x1626ba7e, sub(0, iszero(success))))
}
Expand Down

0 comments on commit 06a21be

Please sign in to comment.