Skip to content

Commit d27bb31

Browse files
authored
Merge pull request #667 from bytesingsong/main
chore: fix some comments
2 parents c2e475f + 35d0bec commit d27bb31

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

x/logic/fs/wasm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (w WasmHandler) Open(ctx context.Context, uri *url.URL) (fs.File, error) {
8080

8181
decoded, err := base64.StdEncoding.DecodeString(program)
8282
if err != nil {
83-
return nil, fmt.Errorf("failed decode wasm base64 respone: %w", err)
83+
return nil, fmt.Errorf("failed decode wasm base64 response: %w", err)
8484
}
8585

8686
return NewVirtualFile(decoded, uri, sdkCtx.BlockTime()), nil

x/logic/fs/wasm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestWasmHandler(t *testing.T) {
7272
data: []byte("\"hey\""),
7373
uri: `cosmwasm:cw-storage:axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08xd26fpdn3tsrhsdrk?query=%7B%22object_data%22%3A%7B%22id%22%3A%20%224cbe36399aabfcc7158ee7a66cbfffa525bb0ceab33d1ff2cff08759fe0a9b05%22%7D%7D`,
7474
wantResult: []byte("\"\""),
75-
wantError: fmt.Errorf("failed decode wasm base64 respone: illegal base64 data at input byte 0"),
75+
wantError: fmt.Errorf("failed decode wasm base64 response: illegal base64 data at input byte 0"),
7676
},
7777
{
7878
contractAddress: "axone15ekvz3qdter33mdnk98v8whv5qdr53yusksnfgc08xd26fpdn3tsrhsdrk",

x/logic/testutil/logic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewLightInterpreterMust(ctx context.Context) (i *prolog.Interpreter) {
4040
}
4141

4242
// NewComprehensiveInterpreterMust returns a new Interpreter with the given context or panics if it fails.
43-
// The Interpreter is configured with the full boostrap but with a minimal set of predicates.
43+
// The Interpreter is configured with the full bootstrap but with a minimal set of predicates.
4444
func NewComprehensiveInterpreterMust(ctx context.Context) (i *prolog.Interpreter) {
4545
i = &prolog.Interpreter{}
4646
i.Register3(engine.NewAtom("op"), engine.Op)

0 commit comments

Comments
 (0)