Skip to content

Commit

Permalink
Merge 910f087 into f77dfce
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed May 30, 2023
2 parents f77dfce + 910f087 commit 6b340f3
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 10 deletions.
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,52 @@

This changelog only contains changes starting from version 1.3.0

# Version 1.4.1

## Compiler settings

Solidity compiler: [0.7.6](https://github.com/ethereum/solidity/releases/tag/v0.7.6) (for more info see issue [#251](https://github.com/safe-global/safe-contracts/issues/251))

Solidity optimizer: `disabled`

## Expected addresses with [Safe Singleton Factory](https://github.com/safe-global/safe-singleton-factory)

### Core contracts

- `Safe` at `0xc962E67D9490E154D81181879ddf4CD3b65D2132`
- `SafeL2` at `0x1eb4681c549d995AbdC4aB189cAbb9f00B508cAb`

### Factory contracts

- `SafeProxyFactory` at `0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67`

### Handler contracts

- `TokenCallbackHandler` at `0xeDCF620325E82e3B9836eaaeFdc4283E99Dd7562`
- `CompatibilityFallbackHandler` at `0x2a15DE4410d4c8af0A7b6c12803120f43C42B820`

### Lib contracts

- `MultiSend` at `0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526`
- `MultiSendCallOnly` at `0x9641d764fc13c8B624c04430C7356C1C7C8102e2`
- `CreateCall` at `0x9b35Af71d77eaf8d7e40252370304687390A1A52`
- `SignMessageLib` at `0x58FCe385Ed16beB4BCE49c8DF34c7d6975807520`

### Storage reader contracts

- `SimulateTxAccessor` at `0x3d4BA2E0884aa488718476ca2FB8Efc291A46199`

## Changes

### Bugfixes

#### Remove `gasleft()` usage in `setupModules`

Issue: [#568](https://github.com/safe-global/safe-contracts/issues/568)

`setupModules` made a call to gasLeft() that is invalid in the ERC-4337 standard. The call was replaced with `type(uint256).max` to forward all the available gas instead.


# Version 1.4.0

## Compiler settings
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Documentation

Audits/ Formal Verification
---------
- [for Version 1.4.0 by Ackee Blockchain](docs/audit_1_4_0.md)
- [for Version 1.4.0/1.4.1 by Ackee Blockchain](docs/audit_1_4_0.md)
- [for Version 1.3.0 by G0 Group](docs/audit_1_3_0.md)
- [for Version 1.2.0 by G0 Group](docs/audit_1_2_0.md)
- [for Version 1.1.1 by G0 Group](docs/audit_1_1_1.md)
Expand Down
2 changes: 1 addition & 1 deletion contracts/Safe.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract Safe is
{
using SafeMath for uint256;

string public constant VERSION = "1.4.0";
string public constant VERSION = "1.4.1";

// keccak256(
// "EIP712Domain(uint256 chainId,address verifyingContract)"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@safe-global/safe-contracts",
"version": "1.4.0",
"version": "1.4.1",
"description": "Ethereum multisig contract",
"homepage": "https://github.com/safe-global/safe-contracts/",
"license": "LGPL-3.0",
Expand Down Expand Up @@ -46,7 +46,7 @@
},
"devDependencies": {
"@gnosis.pm/mock-contract": "^4.0.0",
"@gnosis.pm/safe-singleton-factory": "^1.0.3",
"@gnosis.pm/safe-singleton-factory": "^1.0.14",
"@nomiclabs/hardhat-ethers": "2.0.2",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomiclabs/hardhat-waffle": "2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/migration/UpgradeFromSafe111.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("Upgrade from Safe 1.1.1", () => {
const data = ChangeMasterCopyInterface.encodeFunctionData("changeMasterCopy", [singleton140]);
const tx = buildSafeTransaction({ to: safe.address, data, nonce });
await executeTx(safe, tx, [await safeApproveHash(user1, safe, tx, true)]);
expect(await safe.VERSION()).to.be.eq("1.4.0");
expect(await safe.VERSION()).to.be.eq("1.4.1");

return {
migratedSafe: safe,
Expand Down
2 changes: 1 addition & 1 deletion test/migration/UpgradeFromSafe120.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("Upgrade from Safe 1.2.0", () => {
const data = ChangeMasterCopyInterface.encodeFunctionData("changeMasterCopy", [singleton140]);
const tx = buildSafeTransaction({ to: safe.address, data, nonce });
await executeTx(safe, tx, [await safeApproveHash(user1, safe, tx, true)]);
expect(await safe.VERSION()).to.be.eq("1.4.0");
expect(await safe.VERSION()).to.be.eq("1.4.1");

return {
migratedSafe: safe,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -840,10 +840,10 @@
resolved "https://registry.yarnpkg.com/@gnosis.pm/mock-contract/-/mock-contract-4.0.0.tgz#eaf500fddcab81b5f6c22280a7b22ff891dd6f87"
integrity sha512-SkRq2KwPx6vo0LAjSc8JhgQstrQFXRyn2yqquIfub7r2WHi5nUbF8beeSSXsd36hvBcQxQfmOIYNYRpj9JOhrQ==

"@gnosis.pm/safe-singleton-factory@^1.0.3":
version "1.0.12"
resolved "https://registry.yarnpkg.com/@gnosis.pm/safe-singleton-factory/-/safe-singleton-factory-1.0.12.tgz#4a0b373dc5c4097b8166d8747df348a400fb72a7"
integrity sha512-7nUnXi35EiVKRxypTJ60UMFaf6xA5TLTYyVur2877RDRU02pTabWx1D0wCbdWBMRE0sAxIe302CbIBdpkZuMIg==
"@gnosis.pm/safe-singleton-factory@^1.0.14":
version "1.0.14"
resolved "https://registry.yarnpkg.com/@gnosis.pm/safe-singleton-factory/-/safe-singleton-factory-1.0.14.tgz#42dae9a91fda21b605f94bfe310a7fccc6a4d738"
integrity sha512-xZ26c9uKzpd5Sm8ux0sZHt5QC8n+Q2z1/X5xjPnd8aT5EcKH5t1GgLbAqjrMFmXVIOkiWSc7wi2Bj4XfgtiyaQ==

"@humanwhocodes/config-array@^0.11.8":
version "0.11.8"
Expand Down

0 comments on commit 6b340f3

Please sign in to comment.