diff --git a/integration-tests/src/modules/smartaccount/smartaccount.test.ts b/integration-tests/src/modules/smartaccount/smartaccount.test.ts index 7aa836b7..24b32082 100644 --- a/integration-tests/src/modules/smartaccount/smartaccount.test.ts +++ b/integration-tests/src/modules/smartaccount/smartaccount.test.ts @@ -130,7 +130,7 @@ describe("Smartaccount Module (https://github.com/terra-money/core/tree/release/ } }); - test.only('Only controller should be able to sign', async () => { + test('Only controller should be able to sign', async () => { try { // signing with the controlledAccountAddress should now fail let tx = await wallet.createAndSignTx({ diff --git a/x/smartaccount/ante/tests/auth_test.go b/x/smartaccount/ante/tests/auth_test.go index 1156397d..51b5c62b 100644 --- a/x/smartaccount/ante/tests/auth_test.go +++ b/x/smartaccount/ante/tests/auth_test.go @@ -55,7 +55,6 @@ func (s *AnteTestSuite) TestAuthAnteHandler() { // create initMsg initMsg := smartaccounttypes.Initialization{ - Senders: []string{}, Account: acc.String(), Msg: pkEncoded, } diff --git a/x/smartaccount/keeper/grpc_query.go b/x/smartaccount/keeper/grpc_query.go index ee9a92bf..e80befbc 100644 --- a/x/smartaccount/keeper/grpc_query.go +++ b/x/smartaccount/keeper/grpc_query.go @@ -42,7 +42,10 @@ func (q Querier) Setting( return nil, err } for _, auth := range setting.Authorization { - auth.InitMsg.Msg = []byte(base64.StdEncoding.EncodeToString(auth.InitMsg.Msg)) + auth.InitMsg.Msg, err = base64.StdEncoding.DecodeString(string(auth.InitMsg.Msg)) + if err != nil { + return nil, err + } } return &types.QuerySettingResponse{Setting: *setting}, nil } diff --git a/x/smartaccount/test_helpers/test_data/limit_send_only_hooks.wasm b/x/smartaccount/test_helpers/test_data/limit_send_only_hooks.wasm index b58d3962..cdbb1513 100644 Binary files a/x/smartaccount/test_helpers/test_data/limit_send_only_hooks.wasm and b/x/smartaccount/test_helpers/test_data/limit_send_only_hooks.wasm differ diff --git a/x/smartaccount/test_helpers/test_data/smart_auth_contract.wasm b/x/smartaccount/test_helpers/test_data/smart_auth_contract.wasm index 2e5c0fc9..fec4ded0 100644 Binary files a/x/smartaccount/test_helpers/test_data/smart_auth_contract.wasm and b/x/smartaccount/test_helpers/test_data/smart_auth_contract.wasm differ