From c65989e52e937e556bbcaff07174f522f385341f Mon Sep 17 00:00:00 2001 From: hansol-medi Date: Wed, 14 Dec 2022 10:29:26 +0900 Subject: [PATCH 1/2] fix: change signer to provider address in sumbit consent msg --- x/datadeal/types/message_deal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/datadeal/types/message_deal.go b/x/datadeal/types/message_deal.go index ea9ce129..6539163e 100644 --- a/x/datadeal/types/message_deal.go +++ b/x/datadeal/types/message_deal.go @@ -80,7 +80,7 @@ func (m *MsgSubmitConsent) GetSignBytes() []byte { } func (m *MsgSubmitConsent) GetSigners() []sdk.AccAddress { - oracleAddress, err := sdk.AccAddressFromBech32(m.Certificate.UnsignedCertificate.OracleAddress) + oracleAddress, err := sdk.AccAddressFromBech32(m.Certificate.UnsignedCertificate.ProviderAddress) if err != nil { panic(err) } From f86ea1fdc93ec472459eac7e3816ab2a078f46d9 Mon Sep 17 00:00:00 2001 From: hansol-medi Date: Wed, 14 Dec 2022 10:57:31 +0900 Subject: [PATCH 2/2] fix --- x/datadeal/types/message_deal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/datadeal/types/message_deal.go b/x/datadeal/types/message_deal.go index 6539163e..8fa622e5 100644 --- a/x/datadeal/types/message_deal.go +++ b/x/datadeal/types/message_deal.go @@ -80,11 +80,11 @@ func (m *MsgSubmitConsent) GetSignBytes() []byte { } func (m *MsgSubmitConsent) GetSigners() []sdk.AccAddress { - oracleAddress, err := sdk.AccAddressFromBech32(m.Certificate.UnsignedCertificate.ProviderAddress) + providerAddress, err := sdk.AccAddressFromBech32(m.Certificate.UnsignedCertificate.ProviderAddress) if err != nil { panic(err) } - return []sdk.AccAddress{oracleAddress} + return []sdk.AccAddress{providerAddress} } var _ sdk.Msg = &MsgDeactivateDeal{}