Skip to content

Commit

Permalink
fix: change signer to provider address in sumbit consent msg (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHansLee authored Dec 14, 2022
1 parent b294983 commit c63fb9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/datadeal/types/message_deal.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ func (m *MsgSubmitConsent) GetSignBytes() []byte {
}

func (m *MsgSubmitConsent) GetSigners() []sdk.AccAddress {
oracleAddress, err := sdk.AccAddressFromBech32(m.Certificate.UnsignedCertificate.OracleAddress)
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{}
Expand Down

0 comments on commit c63fb9d

Please sign in to comment.