Skip to content

Commit

Permalink
Merge pull request #5 from colinnielsen/colinnielsen-README-patch
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
colinnielsen authored Jun 14, 2023
2 parents 8f46e01 + 435ab66 commit b412fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct AdvancedSafeInitParams {
| `refundAmount` | `uint256` | The amount of `refundToken` to send to `refundReceiver` after Safe setup. |
| `refundToken` | `address` | The address of the token to refund. **NOTE:** `address(0)` indicates native token. If `refundAmount > 0`, a deployment refund will initiate. |
| `refundReceiver` | `address payable` | The address to receive the `refundAmount` of `refundToken`. **NOTE:** `address(0)` indicates `tx.origin` and will doesn't make senes for Foundry. |
| `initData` | `bytes` | When creating a safe from Safe UI, the `data` param in the Factory call includes the `setup()` transaction. A setup transaction is just the `abi.encoded` call to `setup` on the Safe contract after the factory deploys the SafeProxy ([see how I do this behind the scenes]()). If you wish to implement a custom Safe `setup()` call, you can override `advancedInitParams.initData` with your own bytes string. **NOTE:** overriding the `initData` will override the following above params by default `setupModulesCall_to`, `setupModulesCall_data`, `includeFallbackHandler`, `refundToken`, `refundAmount`, `refundReceiver` |
| `initData` | `bytes` | When creating a safe from Safe UI, the `data` param in the Factory call includes the `setup()` transaction. A setup transaction is just the `abi.encoded` call to `setup` on the Safe contract after the factory deploys the SafeProxy ([see how I do this behind the scenes](https://github.com/colinnielsen/safe-tools/blob/main/src/SafeTestTools.sol#L327-L337)). If you wish to implement a custom Safe `setup()` call, you can override `advancedInitParams.initData` with your own bytes string. **NOTE:** overriding the `initData` will override the following above params by default `setupModulesCall_to`, `setupModulesCall_data`, `includeFallbackHandler`, `refundToken`, `refundAmount`, `refundReceiver` |

## License

Expand Down

0 comments on commit b412fe1

Please sign in to comment.