solc optimize contract bytecode (#414)

This commit is contained in:
noot
2023-04-25 14:02:56 +02:00
committed by GitHub
parent d2629f8246
commit 9cc39e84da
6 changed files with 7 additions and 11 deletions

View File

@@ -101,7 +101,7 @@ func StagenetConfig() *Config {
Port: 38081,
},
},
SwapCreatorAddr: ethcommon.HexToAddress("0xAFEAB9DBD7977c101A71E57dFA36450F2f1A5E9F"),
SwapCreatorAddr: ethcommon.HexToAddress("0xA4B8fD81D399C1E6d1c3F4F79f6fC5AF3bfAAa73"),
ForwarderAddr: ethcommon.HexToAddress("0xa030E074b8398005a454CB7c51E9b7CDb966744a"),
Bootnodes: []string{
"/ip4/134.122.115.208/tcp/9900/p2p/12D3KooWDqCzbjexHEa8Rut7bzxHFpRMZyDRW1L6TGkL1KY24JH5",

File diff suppressed because one or more lines are too long

View File

@@ -28,7 +28,6 @@ func DeploySwapCreatorWithKey(
privKey *ecdsa.PrivateKey,
forwarderAddr ethcommon.Address,
) (ethcommon.Address, *SwapCreator, error) {
txOpts, err := newTXOpts(ctx, ec, privKey)
if err != nil {
return ethcommon.Address{}, nil, err
@@ -51,7 +50,6 @@ func DeploySwapCreatorWithKey(
}
log.Infof("deployed SwapCreator.sol: address=%s tx hash=%s", address, tx.Hash())
return address, sf, nil
}
@@ -62,7 +60,6 @@ func DeployGSNForwarderWithKey(
ec *ethclient.Client,
privKey *ecdsa.PrivateKey,
) (ethcommon.Address, error) {
txOpts, err := newTXOpts(ctx, ec, privKey)
if err != nil {
return ethcommon.Address{}, err
@@ -135,7 +132,6 @@ func registerDomainSeparator(
forwarderAddr ethcommon.Address,
forwarder *gsnforwarder.Forwarder,
) error {
txOpts, err := newTXOpts(ctx, ec, privKey)
if err != nil {
return err

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -17,8 +17,8 @@ compile-contract() {
echo "Generating go bindings for ${solidity_type_name}"
"${SOLC_BIN}" --abi "ethereum/contracts/${solidity_type_name}.sol" -o ethereum/abi/ --overwrite
"${SOLC_BIN}" --bin "ethereum/contracts/${solidity_type_name}.sol" -o ethereum/bin/ --overwrite
"${SOLC_BIN}" --optimize --optimize-runs=200 --abi "ethereum/contracts/${solidity_type_name}.sol" -o ethereum/abi/ --overwrite
"${SOLC_BIN}" --optimize --optimize-runs=200 --bin "ethereum/contracts/${solidity_type_name}.sol" -o ethereum/bin/ --overwrite
"${ABIGEN}" \
--abi "ethereum/abi/${solidity_type_name}.abi" \
--bin "ethereum/bin/${solidity_type_name}.bin" \