Skip to content

Commit

Permalink
Merge pull request #81 from oasisprotocol/csillag/fix-xchain
Browse files Browse the repository at this point in the history
Fix xchain ACL perm test on-chain data parsing
  • Loading branch information
csillag authored Oct 7, 2024
2 parents bc13da1 + 737dc1a commit b71cb8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ACLs/xchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ export const xchain = defineACL({
): Promise<CheckPermissionResults> => {
const { xchain } = options
const chainId = xchain.c
const blockHash = hexlify(xchain.b)
const tokenAddress = hexlify(xchain.a)
const blockHash = hexlify(Uint8Array.from(Object.values(xchain.b)))
const tokenAddress = hexlify(Uint8Array.from(Object.values(xchain.a)))
const slot = xchain.s

let explanation = ''
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/utils/poll.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ export const createPoll = async (
updateStatus('Created poll')
if (isHidden) {
const proposalId = await pollManager.getProposalId(proposalParams, aclData, creator)
// console.log('Hidden proposal id is:', proposalId)
console.log('Created poll with hidden (predicted) proposal id is:', proposalId)
return proposalId
} else {
const proposalId = receipt.logs[0].data
// console.log('doCreatePoll: Proposal ID', proposalId);
console.log('doCreatePoll: Proposal ID is', proposalId)
return proposalId
}
}
Expand Down

0 comments on commit b71cb8e

Please sign in to comment.