From 2b2837d2468d0942c0af369efa01db853b159dfb Mon Sep 17 00:00:00 2001 From: Tom Lehman Date: Tue, 6 Aug 2024 16:41:08 -0400 Subject: [PATCH] Updates --- README.md | 67 +-------------------------------------------- lib/LibFacet.sol | 9 ++++++ script/Deploy.s.sol | 1 - 3 files changed, 10 insertions(+), 67 deletions(-) diff --git a/README.md b/README.md index 9265b45..1a168c7 100644 --- a/README.md +++ b/README.md @@ -1,66 +1 @@ -## Foundry - -**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.** - -Foundry consists of: - -- **Forge**: Ethereum testing framework (like Truffle, Hardhat and DappTools). -- **Cast**: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data. -- **Anvil**: Local Ethereum node, akin to Ganache, Hardhat Network. -- **Chisel**: Fast, utilitarian, and verbose solidity REPL. - -## Documentation - -https://book.getfoundry.sh/ - -## Usage - -### Build - -```shell -$ forge build -``` - -### Test - -```shell -$ forge test -``` - -### Format - -```shell -$ forge fmt -``` - -### Gas Snapshots - -```shell -$ forge snapshot -``` - -### Anvil - -```shell -$ anvil -``` - -### Deploy - -```shell -$ forge script script/Counter.s.sol:CounterScript --rpc-url --private-key -``` - -### Cast - -```shell -$ cast -``` - -### Help - -```shell -$ forge --help -$ anvil --help -$ cast --help -``` +forge script script/Deploy.s.sol:DeployScript --broadcast --rpc-url ... diff --git a/lib/LibFacet.sol b/lib/LibFacet.sol index 074a956..7c5b451 100644 --- a/lib/LibFacet.sol +++ b/lib/LibFacet.sol @@ -17,6 +17,15 @@ library LibFacet { ) internal { sendFacetTransaction(abi.encodePacked(to), value, maxFeePerGas, gasLimit, data); } + + function sendFacetTransaction( + uint256 value, + uint256 maxFeePerGas, + uint256 gasLimit, + bytes memory data + ) internal { + sendFacetTransaction(bytes(''), value, maxFeePerGas, gasLimit, data); + } function sendFacetTransaction( bytes memory to, diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 2039d77..adc1eb9 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -14,7 +14,6 @@ contract DeployScript is Script { LibFacet.sendFacetTransaction( { - to: bytes(''), value: 0, maxFeePerGas: 10, gasLimit: 500_000,