Skip to content

New version breaking bytes type and this.txn.sender param #572

@VKappaKV

Description

@VKappaKV

Using this.txn.senders fails to compile:

assert(
      this.txn.sender === this.operator_Address.value,
      'Only the Node Operator can register online with participation key'
    );
Error: Cannot resolve type ThisTxnParams (apponchaintransactionparams & appparams)
TEALScript can not process PropertyAccessExpression at contracts\CaelusValidator.algo.ts:174:6
    contracts\CaelusValidator.algo.ts:175: this.txn.sender

Using bytes as type in GlobalStateKey fails to compile:

algod_version = GlobalStateKey<bytes>({ key: 'algodV' });
throw Error(Cannot resolve type ${type.getText()} (${typeString}));
              ^

Error: Cannot resolve type Brand<string, "bytes"> (k & { __brand?: t })

Version used: "^0.105.5"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions