Skip to content

Commit

Permalink
fix: remove unnecessary print
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki-tak committed Jun 14, 2022
1 parent a539857 commit c612791
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion x/wasm/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ func (a AccessConfig) ValidateBasic() error {
}
return nil
case AccessTypeOnlyAddress:
fmt.Println("case AccessTypeOnlyAddress")
err := sdk.ValidateAccAddress(a.Address)
return err
}
Expand Down
3 changes: 0 additions & 3 deletions x/wasm/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package types
import (
"encoding/json"
"errors"
"fmt"
"strings"

sdk "github.com/line/lbm-sdk/types"
Expand Down Expand Up @@ -52,8 +51,6 @@ func (msg MsgStoreCode) Type() string {

func (msg MsgStoreCode) ValidateBasic() error {
if err := sdk.ValidateAccAddress(msg.Sender); err != nil {
fmt.Printf("msg=%v: ", msg)
fmt.Printf("err=%s\n", err)
return err
}

Expand Down
2 changes: 0 additions & 2 deletions x/wasm/types/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package types

import (
"bytes"
fmt "fmt"
"strings"
"testing"

Expand Down Expand Up @@ -70,7 +69,6 @@ func TestStoreCodeValidation(t *testing.T) {
t.Run(name, func(t *testing.T) {
err := tc.msg.ValidateBasic()
if tc.valid {
fmt.Printf("err=%v\n", err)
assert.NoError(t, err)
} else {
assert.Error(t, err)
Expand Down

0 comments on commit c612791

Please sign in to comment.