Skip to content

Commit

Permalink
chore: update WETH9
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 7, 2023
1 parent 94f40b9 commit 167f74e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gen-tokens:
$(call gen_go_binding,ERC20,src/tokens/ERC20,tokens,src/tokens)
$(call gen_go_binding,ERC721,src/tokens/ERC721,tokens,src/tokens)
$(call gen_go_binding,Swapper,src/tokens/Swapper,tokens,src/tokens)
$(call gen_go_binding,WETH9,src/tokens/WETH9,tokens,src/tokens)
$(call gen_go_binding_from_lib,canonical-weth,WETH9,src/tokens/WETH9,tokens,src/tokens)

gen-uniswapv3:
solc-select use 0.7.6
Expand Down Expand Up @@ -46,7 +46,7 @@ define gen_go_binding_from_lib

# Copy .sol files and add comments about code generation
find ./lib/$1 -type f -name $2.sol -exec sh -c ' \
echo "// Smart contract code copied from the source ($1). DO NOT EDIT." > ./$3/$2.sol && \
echo "// Smart contract code copied from the source (./lib/$1). DO NOT EDIT." > ./$3/$2.sol && \
echo "// Use the Makefile to generate new ABI, bytecode, and Go bindings.\n" >> ./$3/$2.sol && \
cat {} >> ./$3/$2.sol' \;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Smart contract code copied from the source (openzeppelin-contracts-v3.4.1-solc-0.7-2). DO NOT EDIT.
// Smart contract code copied from the source (./lib/openzeppelin-contracts-v3.4.1-solc-0.7-2). DO NOT EDIT.
// Use the Makefile to generate new ABI, bytecode, and Go bindings.

// SPDX-License-Identifier: MIT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Smart contract code copied from the source (openzeppelin-contracts-v3.4.1-solc-0.7-2). DO NOT EDIT.
// Smart contract code copied from the source (./lib/openzeppelin-contracts-v3.4.1-solc-0.7-2). DO NOT EDIT.
// Use the Makefile to generate new ABI, bytecode, and Go bindings.

// SPDX-License-Identifier: MIT
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/tokens/WETH9.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 167f74e

Please sign in to comment.