-
Notifications
You must be signed in to change notification settings - Fork 818
Closed
Labels
Type: bugSomething isn't workingSomething isn't working
Description
Describe the bug
- contract.call return type changed in V5. V4 code do not compile anymore.
- provider.waitForTransaction V4 code no more compile in V5.
To Reproduce
- contract.call
In V4, this code with contract.call and contract.meta-class is working :
bal1 type isany
bal1b type isResult
:
In V5.1.0, I have these errors :
bal1
type is still any
bal1b
type changed to Object
bal1.res
still operates.
bal1b.res
no more compile ('res' property do not exists in type 'Object')
- provider.waitForTransaction
compilation error in V5 : 2 args expected, but 1 received. Seems to be an optional parameter that is not really optional.
Expected behavior
- contract.meta-class has migrated flawlessly. Same thing is expected from contract.call.
- provider.waitForTransaction flawless migration.
Desktop (please complete the following information):
- Browser & version [e.g. chrome, safari, webworker] N/A
- Node version [e.g. 16.0.1]ts-node v10.9.1
- Starknet.js version v4.22 & 5.1.0
- Network [devnet, testnet] devnet
Metadata
Metadata
Assignees
Labels
Type: bugSomething isn't workingSomething isn't working