Skip to content

Commit

Permalink
fixed src address for DAO admin exec cross-chain msgs again
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed May 9, 2024
1 parent 86791dc commit d934254
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stateful/hooks/useProposalRelayState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const useProposalRelayState = ({
contractAddress: decoded.data.polytoneConnection.listener,
params: [
{
initiator: coreAddress,
initiator: decoded.sender,
initiatorMsg: decoded.data.initiatorMsg,
},
],
Expand Down
2 changes: 2 additions & 0 deletions packages/types/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export type DecodedCrossChainMessage =
| {
type: 'polytone'
data: DecodedPolytoneMsgMatch
sender: string
srcConnection: string
srcChannel: string
srcPort: string
Expand All @@ -114,6 +115,7 @@ export type DecodedCrossChainMessage =
| {
type: 'ica'
data: DecodedIcaMsgMatch
sender: string
srcConnection: string
// Cannot determine srcChannel from decoded message.
srcPort: string
Expand Down
2 changes: 2 additions & 0 deletions packages/utils/messages/cw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ export const decodeCrossChainMessages = (
return {
type: 'polytone',
data: decodedPolytone,
sender: srcAddress,
srcConnection: decodedPolytone.polytoneConnection.localConnection,
srcChannel: decodedPolytone.polytoneConnection.localChannel,
srcPort: `wasm.${decodedPolytone.polytoneConnection.note}`,
Expand All @@ -552,6 +553,7 @@ export const decodeCrossChainMessages = (
return {
type: 'ica',
data: decodedIca,
sender: srcAddress,
srcConnection: ibcInfo.sourceChain.connection_id,
srcPort: `icacontroller-${srcAddress}`,
dstConnection: ibcInfo.destinationChain.connection_id,
Expand Down

0 comments on commit d934254

Please sign in to comment.