Skip to content

Commit

Permalink
fix: add "generated by" note for schemagen'd code
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 20, 2021
1 parent 5961f8a commit 85d47c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion go-schemagen/generate-schema-for-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ __dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
output="${__dirname}/../mainnet/gen.js"
echo "Working ..."

rm ${output}
echo -e '// Code generated by github.com/filecoin-shipyard/js-lotus-client-schema/go-schemagen. DO NOT EDIT.\n' > ${output}

for api in Common FullNode StorageMiner Gateway Wallet Worker; do
echo -n "module.exports.${api}Methods = " >> ${output}
Expand Down
2 changes: 2 additions & 0 deletions mainnet/gen.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Code generated by github.com/filecoin-shipyard/js-lotus-client-schema/go-schemagen. DO NOT EDIT.

module.exports.CommonMethods = {
AuthNew: {},
AuthVerify: {},
Expand Down

0 comments on commit 85d47c5

Please sign in to comment.