diff --git a/proto/terra/smartaccount/v1/setting.proto b/proto/terra/smartaccount/v1/setting.proto index 5679fa80..f8df537b 100644 --- a/proto/terra/smartaccount/v1/setting.proto +++ b/proto/terra/smartaccount/v1/setting.proto @@ -21,7 +21,7 @@ message Setting { repeated string post_transaction = 4 [ (cosmos_proto.scalar) = "cosmos.AddressString" ]; // Fallback to default SigVerify if custom authorization fails - bool Fallback = 5; + bool fallback = 5; } message AuthorizationMsg { diff --git a/x/smartaccount/ante/auth.go b/x/smartaccount/ante/auth.go index 2c111c75..caaefe46 100644 --- a/x/smartaccount/ante/auth.go +++ b/x/smartaccount/ante/auth.go @@ -117,8 +117,6 @@ func (sad SmartAccountAuthDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simu } } - panic(tx.GetMsgs()[0].String()) - // run through the default handlers for signature verification // if no custom authorization is set or if the custom authorization fails with fallback newCtx, err := sad.defaultVerifySigDecorator(ctx, tx, simulate) diff --git a/x/smartaccount/types/setting.pb.go b/x/smartaccount/types/setting.pb.go index 3869727f..62f1a252 100644 --- a/x/smartaccount/types/setting.pb.go +++ b/x/smartaccount/types/setting.pb.go @@ -35,7 +35,7 @@ type Setting struct { // List of contract addresses to perform post-txn logic PostTransaction []string `protobuf:"bytes,4,rep,name=post_transaction,json=postTransaction,proto3" json:"post_transaction,omitempty"` // Fallback to default SigVerify if custom authorization fails - Fallback bool `protobuf:"varint,5,opt,name=Fallback,proto3" json:"Fallback,omitempty"` + Fallback bool `protobuf:"varint,5,opt,name=fallback,proto3" json:"fallback,omitempty"` } func (m *Setting) Reset() { *m = Setting{} } @@ -168,30 +168,30 @@ func init() { } var fileDescriptor_8b1bfc9d01b712f3 = []byte{ - // 362 bytes of a gzipped FileDescriptorProto + // 361 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x4e, 0x02, 0x31, 0x10, 0x40, 0x59, 0x10, 0xc1, 0x1a, 0x85, 0x6c, 0x30, 0x59, 0x38, 0x6c, 0x36, 0x78, 0x10, 0x0f, - 0x6c, 0x03, 0x7c, 0x01, 0x9a, 0x78, 0xe3, 0x02, 0x1e, 0x8c, 0x97, 0x4d, 0x29, 0x4d, 0xd9, 0xc8, - 0xb6, 0x9b, 0x76, 0x40, 0xf1, 0x2b, 0xfc, 0x18, 0xbf, 0xc1, 0x78, 0x24, 0x9e, 0x3c, 0x1a, 0xf8, - 0x11, 0xb3, 0x5b, 0x54, 0x30, 0x06, 0x6f, 0x9d, 0xce, 0xeb, 0x9b, 0xe9, 0xb4, 0xe8, 0x14, 0x98, - 0x52, 0x04, 0xeb, 0x88, 0x28, 0x20, 0x94, 0xca, 0xa9, 0x00, 0x3c, 0x6b, 0x61, 0xcd, 0x00, 0x42, - 0xc1, 0xfd, 0x58, 0x49, 0x90, 0xf6, 0x49, 0x0a, 0xf9, 0x9b, 0x90, 0x3f, 0x6b, 0xd5, 0x2a, 0x5c, - 0x72, 0x99, 0x12, 0x38, 0x59, 0x19, 0xb8, 0x56, 0xa5, 0x52, 0x47, 0x52, 0x07, 0x26, 0x61, 0x02, - 0x93, 0xaa, 0xbf, 0x64, 0x51, 0x61, 0x60, 0xcc, 0xb6, 0x8f, 0xf2, 0xf2, 0x5e, 0x30, 0xe5, 0x58, - 0x9e, 0xd5, 0x38, 0xb8, 0x70, 0xde, 0x9e, 0x9b, 0x95, 0x35, 0xdc, 0x1d, 0x8d, 0x14, 0xd3, 0x7a, - 0x00, 0x2a, 0x14, 0xbc, 0x6f, 0x30, 0x9b, 0xa3, 0x23, 0x32, 0x85, 0xb1, 0x54, 0xe1, 0x23, 0x81, - 0x50, 0x0a, 0x27, 0xeb, 0xe5, 0x1a, 0x87, 0xed, 0x33, 0xff, 0xcf, 0xde, 0xfc, 0xee, 0x26, 0xdb, - 0xd3, 0x7c, 0x47, 0x81, 0x6d, 0xaf, 0xdd, 0x45, 0xa5, 0x58, 0xb1, 0x00, 0x14, 0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x32, + 0x19, 0x12, 0x7a, 0xe7, 0xe4, 0x3d, 0xab, 0x51, 0xec, 0x7f, 0xc7, 0xf5, 0x6b, 0x54, 0xfe, 0x7d, + 0x41, 0xfb, 0x1c, 0x95, 0xa9, 0x14, 0xa0, 0x08, 0x85, 0x80, 0x18, 0xb5, 0x99, 0x6d, 0xbf, 0xf4, + 0xb5, 0xbf, 0xae, 0x68, 0x57, 0x51, 0x31, 0x14, 0x21, 0x04, 0x91, 0xe6, 0x4e, 0x36, 0x45, 0x0a, + 0x49, 0x9c, 0x8c, 0xa9, 0xf7, 0xba, 0x74, 0xad, 0xc5, 0xd2, 0xb5, 0x3e, 0x96, 0xae, 0xf5, 0xb4, + 0x72, 0x33, 0x8b, 0x95, 0x9b, 0x79, 0x5f, 0xb9, 0x99, 0x9b, 0x0e, 0x0f, 0x61, 0x3c, 0x1d, 0xfa, + 0x54, 0x46, 0x38, 0x9d, 0x79, 0x33, 0x92, 0x82, 0xcd, 0x31, 0x95, 0x8a, 0xe1, 0x59, 0x1b, 0x3f, + 0x6c, 0x7f, 0x22, 0x98, 0xc7, 0x4c, 0x0f, 0xf7, 0xd3, 0x87, 0xef, 0x7c, 0x06, 0x00, 0x00, 0xff, + 0xff, 0x52, 0x18, 0x83, 0xa4, 0x67, 0x02, 0x00, 0x00, } func (m *Setting) Marshal() (dAtA []byte, err error) {