Skip to content

Commit

Permalink
Fix UpdateChannelPayoutsProposalFixture
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Jan 30, 2023
1 parent 0178332 commit ccbfd21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createType } from '@joystream/types'
import { MemberId } from '@joystream/types/primitives'
import { generateCommitmentFromPayloadFile } from '@joystream/js/content'
import { readBytesFromFile } from '@joystream/js/utils'
import BN from 'bn.js'
import fs from 'fs'
import { Api } from '../../../Api'
Expand Down Expand Up @@ -43,7 +44,7 @@ export class UpdateChannelPayoutsProposalFixture extends BaseQueryNodeFixture {
{
type: 'UpdateChannelPayouts',
details: createType('PalletContentUpdateChannelPayoutsParametersRecord', {
commitment: await generateCommitmentFromPayloadFile('PATH', protobufPayloadFilePath),
commitment: await generateCommitmentFromPayloadFile(readBytesFromFile('PATH', protobufPayloadFilePath)),
payload: {
objectCreationParams: {
size_: fs.statSync(protobufPayloadFilePath).size,
Expand Down

0 comments on commit ccbfd21

Please sign in to comment.