Open Liaoboo opened 3 days ago
Hi, I'm using version 3.9.0, and I encountered these errors while compiling and running." • Dart version 3.4.3 • DevTools version 2.34.3 • Android Studio (version 2024.1)
Hi, I'm using version 3.9.0, and I encountered these errors while compiling and running." • Dart version 3.4.3 • DevTools version 2.34.3 • Android Studio (version 2024.1)
Hi,
Please use the latest versions of on_chain
and blockchain_utils
. If any issues persist, try clearing your Flutter cache by running flutter clean
hi,In the latest version, the TransactionInstruction class has removed the fromBytes() method。 If I can only use 3.9.0 currently, is there any way?
hi,In the latest version, the TransactionInstruction class has removed the fromBytes() method。 If I can only use 3.9.0 currently, is there any way?
For older versions, this should work. If you're using blockchain_utils
in your pubspec.yaml
, downgrade to version 3.3
. Otherwise, flutter clean
should work fine.
In the latest version, TransactionInstruction.fromBytes
has been moved to the ProgramLayout
class. You can now use ProgramLayout.fromBytes
to retrieve the current layout, provided that the instruction is supported in on-chain
package.
../../../.pub-cache/hosted/pub.dev/on_chain-3.9.0/lib/solidity/abi/exception/abi_exception.dart:10:9: Error: The superclass, 'BlockchainUtilsException', has no unnamed constructor that takes no arguments. const SolidityAbiException(this.message, {this.details}); ^^^^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.dev/on_chain-3.9.0/lib/solana/src/rpc/provider/provider.dart:23:9: Error: No named parameter with the name 'data'. data: data["error"]?["data"], ^^^^ ../../../.pub-cache/hosted/pub.dev/blockchain_utils-3.4.0/lib/exception/rpc_error.dart:10:9: Context: Found this candidate, but the arguments don't match. const RPCError( ^^^^^^^^ ../../../.pub-cache/hosted/pub.dev/on_chain-3.9.0/lib/solana/src/utils/layouts.dart:20:24: Error: The argument type 'Layout?' can't be assigned to the parameter type 'BaseIntiger?'.