Skip to content

Commit

Permalink
fix michelson params
Browse files Browse the repository at this point in the history
  • Loading branch information
Keefer Taylor committed Dec 1, 2020
1 parent f5f030b commit 20c0629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chain/tezos/contracts/WrappedTezosHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ export namespace WrappedTezosHelper {
): Promise<OpenOvenResult> {
const entryPoint = 'runEntrypointLambda'
const lambdaName = 'createOven'
const bakerParam = baker ?? 'None'
const bytes = TezosMessageUtils.writePackedData(`Pair "${bakerParam}" "${keystore.publicKeyHash}"`, 'pair (option key_hash) address', TezosParameterFormat.Michelson)
const bakerParam = baker !== undefined ? `Some "${baker}"` : 'None'
const bytes = TezosMessageUtils.writePackedData(`Pair ${bakerParam} "${keystore.publicKeyHash}"`, 'pair (option key_hash) address', TezosParameterFormat.Michelson)
const parameters = `Pair "${lambdaName}" 0x${bytes}`

const nodeResult = await TezosNodeWriter.sendContractInvocationOperation(
Expand Down

0 comments on commit 20c0629

Please sign in to comment.