Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
VKappaKV opened this issue Nov 11, 2024 · 0 comments
Open

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

VKappaKV opened this issue Nov 11, 2024 · 0 comments

Comments

@VKappaKV
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant