Skip to content

Commit

Permalink
feat: use Infura api key
Browse files Browse the repository at this point in the history
  • Loading branch information
yk-saito committed Oct 22, 2023
1 parent d2c82de commit f81f793
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client/lib/TodoListModel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class TodoListModel extends ChangeNotifier {
List<Task> todos = [];
bool isLoading = true;
int? taskCount;
final String _rpcUrl = 'https://rpc.ankr.com/polygon_mumbai';

Web3Client? _client;
String? _abiCode;
Expand All @@ -33,7 +32,7 @@ class TodoListModel extends ChangeNotifier {
Future<void> init() async {
var httpClient = Client();

_client = Web3Client(_rpcUrl, httpClient);
_client = Web3Client(dotenv.env["INFURA_KEY_TEST"]!, httpClient);

await getAbi();
await getCredentials();
Expand Down

0 comments on commit f81f793

Please sign in to comment.