Skip to content

Commit 96eb6a2

Browse files
authored
merge fix/deploy-all-contracts into develop (#80)
2 parents 96000d9 + 09fb956 commit 96eb6a2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

script/DeployAllContracts.s.sol

+9-4
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ contract DeployAllContracts is Script {
9999
console2.log('"entryPoint": "%s",', "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789");
100100
console2.log('"factoryAddress": "%s",', address(factory));
101101
console2.log('"chatterPayAddress": "%s",', address(chatterPay));
102-
console2.log('"simpleSwapAddress": "%s",', "0x");
103102
console2.log('"chatterNFTAddress": "%s",', address(chatterPayNFT));
104-
console2.log('"paymasterAddress": "%s"', address(paymaster));
103+
console2.log('"paymasterAddress": "%s",', address(paymaster));
104+
console2.log('"routerAddress": "%s"', config.router);
105105
console2.log("}");
106106

107107
console2.log("------------------------------------------------------------------------------");
@@ -119,8 +119,13 @@ contract DeployAllContracts is Script {
119119
* @notice Deploy paymaster with entryPoint and backend signer (config.account)
120120
*/
121121
function deployPaymaster() internal {
122-
address paymasterAddress = vm.envAddress("DEPLOYED_PAYMASTER_ADDRESS");
123-
122+
address paymasterAddress;
123+
try vm.envAddress("DEPLOYED_PAYMASTER_ADDRESS") returns (address addr) {
124+
paymasterAddress = addr;
125+
} catch {
126+
paymasterAddress = address(0);
127+
}
128+
124129
if (paymasterAddress == address(0)) {
125130
console2.log("Creating NEW Paymaster!");
126131
paymaster = new ChatterPayPaymaster(config.entryPoint, config.account);

0 commit comments

Comments
 (0)