Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
sesheffield committed Jul 25, 2024
1 parent 1003a08 commit 3c92d96
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 27 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: '0'
fetch-depth: '1'
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- name: List all changed files
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: Prepare Lint Args
id: prepare-lint-args
run: |
# Extract changed Go files and format them for golangci-lint
changed_files="${{ steps.changed-files.outputs.all_changed_files }}"
if [ -z "$changed_files" ]; then
echo "No Go files changed, skipping golangci-lint."
exit 0
fi
echo "Changed Go files:"
echo "$changed_files"
# Prepare arguments for golangci-lint
# Filter only Go files
go_files=$(find . -name '*.go' -print | tr '\n' ' ')
echo "go_files=$go_files" >> $GITHUB_ENV
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
Expand Down
2 changes: 1 addition & 1 deletion app/params/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type EncodingConfig struct {
Amino *codec.LegacyAmino
}

// MakeEncodingConfig creates a new EncodingConfig.
// MakeEncodingConfigBlah creates a new EncodingConfig.
func MakeEncodingConfig() EncodingConfig {
amino := codec.NewLegacyAmino()
interfaceRegistry := types.NewInterfaceRegistry()
Expand Down
9 changes: 5 additions & 4 deletions app/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const (

// Default simulation operation weights for messages and gov proposals
const (
DefaultWeightMsgPlaceBid int = 20
DefaultWeightMsgCreateAtomicSwap int = 20
DefaultWeightMsgUpdatePrices int = 20
DefaultWeightMsgCdp int = 20
DefaultWeightMsgPlaceBid int = 20
DefaultWeightMsgCreateAtomicSwap int = 20
DefaultWeightMsgUpdatePrices int = 20
DefaultWeightMsgCdp int = 20

DefaultWeightMsgClaimReward int = 20
DefaultWeightMsgDeposit int = 20
DefaultWeightMsgWithdraw int = 20
Expand Down

0 comments on commit 3c92d96

Please sign in to comment.