Skip to content

Commit

Permalink
fix: correct messages types
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Sep 19, 2023
1 parent 5fc9fbf commit c64b6b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/components/dao/GnoDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const GnoDemo: React.FC<{
onSubmit={async (form) =>
wrapWithFeedback(async () => {
const msg: GnoDAOUpdateSettings = {
type: "gno.land/p/demo/daodao/proposal_single.UpdateSettings",
type: "gno.land/p/demo/teritori/dao_proposal_single.UpdateSettings",
payload: {
threshold: {
thresholdQuorum: {
Expand Down Expand Up @@ -179,7 +179,7 @@ const DeletePost: React.FC<{ daoId: string }> = ({ daoId }) => {
const threadIdNum = parseInt(threadId, 10);
const postIdNum = parseInt(postId, 10);
const payload: GnoModboardsDeletePostMessage = {
type: "gno.land/r/demo/modboards.DeletePost",
type: "gno.land/r/demo/teritori/modboards.DeletePost",
payload: {
boardId: boardIdNum,
threadId: threadIdNum,
Expand Down Expand Up @@ -233,7 +233,7 @@ const CreateBoard: React.FC<{ daoId: string }> = ({ daoId }) => {
loader
onPress={wrapWithFeedback(async () => {
const payload: GnoModboardsCreateMessage = {
type: "gno.land/r/demo/modboards.CreateBoard",
type: "gno.land/r/demo/teritori/modboards.CreateBoard",
payload: {
name,
},
Expand Down Expand Up @@ -293,7 +293,7 @@ const MintTori: React.FC<{ daoId: string }> = ({ daoId }) => {
loader
onPress={wrapWithFeedback(async () => {
const payload: GnoMintToriMessage = {
type: "gno.land/r/demo/tori.Mint",
type: "gno.land/r/demo/teritori/tori.Mint",
payload: {
amount: parseInt(amount, 10),
address: recipient,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const SocialThreadCard: React.FC<{

try {
const msg: GnoBanPostMessage = {
type: "gno.land/r/demo/social_feeds.BanPost",
type: "gno.land/r/demo/teritori/social_feeds.BanPost",
payload: {
feedId: +TERITORI_FEED_ID,
postId: +localPost.identifier,
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/gnodao/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface GnoDAOVoteRequest {
}

export interface GnoDAOUpdateSettings {
type: "gno.land/p/demo/teritori/proposal_single.UpdateSettings";
type: "gno.land/p/demo/teritori/dao_proposal_single.UpdateSettings";
payload: {
threshold: {
thresholdQuorum: {
Expand Down

0 comments on commit c64b6b3

Please sign in to comment.