Skip to content

Commit

Permalink
🔁 Bump prettier-plugin-solidity to Version 1.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Dec 24, 2023
1 parent ac2fd54 commit 2f4434b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
1 change: 0 additions & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
plugins:
- "prettier-plugin-solidity"
experimentalTernaries: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"hardhat": "^2.19.3",
"mocha": "^10.2.0",
"prettier": "^3.1.1",
"prettier-plugin-solidity": "^1.3.0",
"prettier-plugin-solidity": "^1.3.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/contracts/CreateX.sol
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ contract CreateX {
} else {
// For the non-pseudo-random cases, the salt value `salt` is hashed to prevent the safeguard mechanisms
// from being bypassed. Otherwise, the salt value `salt` is not modified.
guardedSalt = salt != _generateSalt() ? keccak256(abi.encode(salt)) : salt;
guardedSalt = (salt != _generateSalt()) ? keccak256(abi.encode(salt)) : salt;
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ task(
contract: hre.config.xdeploy.contract,
txHash: createReceipt[i].hash,
txHashLink:
hre.config.xdeploy.networks[i].slice(0, 8) == "filecoin" ?
`${explorers[idx]}message/${createReceipt[i].hash}`
: `${explorers[idx]}tx/${createReceipt[i].hash}`,
hre.config.xdeploy.networks[i].slice(0, 8) == "filecoin"
? `${explorers[idx]}message/${createReceipt[i].hash}`
: `${explorers[idx]}tx/${createReceipt[i].hash}`,
address: computedContractAddress,
addressLink: `${explorers[idx]}address/${computedContractAddress}`,
receipt: createReceipt[i].toJSON(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ contract CreateX {
} else {
// For the non-pseudo-random cases, the salt value `salt` is hashed to prevent the safeguard mechanisms
// from being bypassed. Otherwise, the salt value `salt` is not modified.
guardedSalt = salt != _generateSalt() ? keccak256(abi.encode(salt)) : salt;
guardedSalt = (salt != _generateSalt()) ? keccak256(abi.encode(salt)) : salt;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ contract CreateX {
} else {
// For the non-pseudo-random cases, the salt value `salt` is hashed to prevent the safeguard mechanisms
// from being bypassed. Otherwise, the salt value `salt` is not modified.
guardedSalt = salt != _generateSalt() ? keccak256(abi.encode(salt)) : salt;
guardedSalt = (salt != _generateSalt()) ? keccak256(abi.encode(salt)) : salt;
}
}

Expand Down

0 comments on commit 2f4434b

Please sign in to comment.