focustree / starknet.dart

Mobile SDK for StarkNet ✨
https://starknetdart.dev
MIT License
29 stars 25 forks source link

Deploy & invoke from cairo 2 account #255

Closed ptisserand closed 3 months ago

ptisserand commented 1 year ago

While doing node guardians quest, I have found that account contract interface is different between cairo legacy and cairo.

In cairo legacy: __execute__( call_array_len: felt, call_array: AccountCallArray*, calldata_len: felt, calldata: felt*)

In OpenZeppellin: __execute__( mut calls: Array<Call>)

We should query the contract to know which interface is supported.

ptisserand commented 1 year ago

See starknet.js implementation

ptisserand commented 1 year ago

ArgentX update their account contract, so updated account are not more usable from starknet.dart