Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitatrifan authored and NoahSaso committed Jul 17, 2024
1 parent 2a3336b commit 14d49f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ guide](https://github.com/DA0-DA0/dao-dao-ui/wiki/Bulk-importing-actions).

### Key

`becomeSubDao`
`acceptSubDao`

### Data format

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,20 @@ const useDecodedCosmosMsg: UseDecodedCosmosMsg<AcceptSubDaoData> = (
msg: Record<string, any>
) => {
try {
return {
match: true,
data: {
address: msg.wasm.execute.contract_addr,
},
const match = Boolean(
msg.wasm.execute.contract_addr.msg.accept_admin_nomination
)

if (match) {
return {
match,
data: {
address: msg.wasm.execute.contract_addr,
},
}
}

return { match: false }
} catch (e) {
return { match: false }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const useDecodedCosmosMsg: UseDecodedCosmosMsg<BecomeSubDaoData> = (
admin: msg.wasm.execute.nominate_admin.admin,
},
}
} catch (e) {
} catch {
return { match: false }
}
}
Expand Down

0 comments on commit 14d49f2

Please sign in to comment.