Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdruid committed May 8, 2024
1 parent 03d3e27 commit 5beb031
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/client/api/signer/draft.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { verify_proposal } from '@/core/validation/proposal.js'
import { EscrowSigner } from '../../class/signer.js'

import {
get_proposal_id,
verify_endorsement
} from '@/core/lib/proposal.js'

import {
CredentialConfig,
DraftSession
Expand All @@ -16,7 +21,6 @@ import {
join_session,
leave_session
} from '../../lib/session.js'
import { get_proposal_id, verify_endorsement } from '@/core/lib/proposal.js'

export function join_session_api (esigner : EscrowSigner) {
return (
Expand Down Expand Up @@ -71,10 +75,8 @@ export function has_role_api (esigner : EscrowSigner) {
}

export function has_signature_api (esigner : EscrowSigner) {
const pub = esigner.pubkey
return (
session : DraftSession
) : boolean => {
return (session : DraftSession) : boolean => {
const pub = esigner.pubkey
const sig = session.sigs.find(e => e.slice(0, 64) === pub)
if (sig === undefined) return false
const prop_id = get_proposal_id(session.proposal)
Expand Down
1 change: 0 additions & 1 deletion src/client/lib/enrollment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export function verify_member_data (
const rdata = get_enrollment(cred, proposal)
const rpaths = rdata.paths.map(e => e.toString())
const rprogs = programs.map(e => e.toString())
console.log('pay:', payment, rdata.payment)
if (
typeof payment === 'number' &&
payment > 0 &&
Expand Down

0 comments on commit 5beb031

Please sign in to comment.