-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Describe the bug
A clear and concise description of what the bug is.
When running getTokenAccountsByOwner, I get an unhandled exception: "type 'double' is not a subtype of 'int'.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'double' is not a subtype of type 'int'
#0 new AccountInfo.fromJson (package:solana_web3/src/rpc/models/account_info.dart:86:20)
#1 new TokenAccount.fromJson (package:solana_web3/src/rpc/models/token_account.dart:22:26)
#2 GetTokenAccountsByOwner.itemDecoder (package:solana_web3/src/rpc/methods/get_token_accounts_by_owner.dart:31:21)
#3 MappedListIterable.elementAt (dart:_internal/iterable.dart:425:31)
#4 ListIterator.moveNext (dart:_internal/iterable.dart:354:26)
#5 new _List._ofEfficientLengthIterable (dart:core-patch/array.dart:162:27)
#6 new _List.of (dart:core-patch/array.dart:127:20)
#7 new List.of (dart:core-patch/array_patch.dart:39:50)
#8 ListIterable.toList (dart:_internal/iterable.dart:224:7)
#9 JsonRpcListContextMethod.valueDecoder (package:solana_web3/src/rpc/interfaces/json_rpc_list_context_method.dart:23:41)
#10 JsonRpcResponseContext.decode (package:solana_jsonrpc/src/jsonrpc/response_context.dart:41:21)
#11 JsonRpcContextMethod.decoder (package:solana_jsonrpc/src/jsonrpc/context_method.dart:48:31)
#12 JsonRpcMethod.response (package:solana_jsonrpc/src/jsonrpc/method.dart:92:48)
#13 Client.send (package:solana_jsonrpc/src/jsonrpc/client.dart:90:47)
#14 HttpConnection.getTokenAccountsByOwner (package:solana_web3/src/rpc/http_connection.dart:688:16)