Skip to content

Commit

Permalink
Fix/community ingestion (#710)
Browse files Browse the repository at this point in the history
* Trying out removing upsertrole

* remove unused function
  • Loading branch information
lucca65 authored Mar 25, 2022
1 parent e8ec206 commit e43ceeb
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/elm/Page/Community/New.elm
Original file line number Diff line number Diff line change
Expand Up @@ -491,14 +491,6 @@ update msg model loggedIn =
, authorization = authorization
, data = Token.encodeCreateTokenData createTokenData
}
, { accountName = loggedIn.shared.contracts.community
, name = "upsertrole"
, authorization =
{ actor = loggedIn.accountName
, permissionName = Eos.samplePermission
}
, data = defaultRoleTransaction createCommunityData.cmmAsset.symbol
}
]
}

Expand Down Expand Up @@ -546,25 +538,6 @@ update msg model loggedIn =
model


defaultRoleTransaction : Eos.Symbol -> Value
defaultRoleTransaction symbol =
Encode.object
[ ( "community_id", Eos.encodeSymbol symbol )
, ( "name", Encode.string "member" )
, ( "color", Encode.string "#ffffff" )
, ( "permissions"
, Encode.list Encode.string
[ "invite"
, "claim"
, "order"
, "verify"
, "sell"
, "transfer"
]
)
]


jsAddressToMsg : List String -> Value -> Maybe Msg
jsAddressToMsg addr val =
case addr of
Expand Down

0 comments on commit e43ceeb

Please sign in to comment.