diff --git a/src/chain/action.ts b/src/chain/action.ts index abc1de79..104c7a98 100644 --- a/src/chain/action.ts +++ b/src/chain/action.ts @@ -54,7 +54,8 @@ export class Action extends Struct { /** The ABI-encoded action data. */ @Struct.field('bytes') data!: Bytes - static from(object: ActionType | AnyAction, abi?: ABIDef): Action { + static from(anyAction: ActionType | AnyAction, abi?: ABIDef): Action { + let object = {...anyAction} const data = object.data as any if (!Bytes.isBytes(data)) { let type: string | undefined