feat: allow to use VRF in dryWrite

This commit is contained in:
robal
2023-03-15 15:34:49 +01:00
parent c915d53ce1
commit 0c3ddd707d
2 changed files with 5 additions and 3 deletions

View File

@@ -166,7 +166,8 @@ export interface Contract<State = unknown> {
input: Input,
caller?: string,
tags?: Tags,
transfer?: ArTransfer
transfer?: ArTransfer,
vrf?: boolean
): Promise<InteractionResult<State, unknown>>;
applyInput<Input>(input: Input, transaction: GQLNodeInterface): Promise<InteractionResult<State, unknown>>;

View File

@@ -228,10 +228,11 @@ export class HandlerBasedContract<State> implements Contract<State> {
input: Input,
caller?: string,
tags?: Tags,
transfer?: ArTransfer
transfer?: ArTransfer,
vrf?: boolean
): Promise<InteractionResult<State, unknown>> {
this.logger.info('Dry-write for', this._contractTxId);
return await this.callContract<Input>(input, 'write', caller, undefined, tags, transfer);
return await this.callContract<Input>(input, 'write', caller, undefined, tags, transfer, undefined, vrf);
}
async applyInput<Input>(input: Input, transaction: GQLNodeInterface): Promise<InteractionResult<State, unknown>> {