feat: allow to use VRF in dryWrite
This commit is contained in:
@@ -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>>;
|
||||
|
||||
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user