Skip to content

Commit

Permalink
refactor: remove unnecessary definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
yk-saito committed Oct 21, 2023
1 parent 6cbce67 commit 4e7745d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/client/lib/TodoListModel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:http/http.dart';
import 'package:web3dart/web3dart.dart';
import 'package:web_socket_channel/io.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

class TodoListModel extends ChangeNotifier {
Expand All @@ -18,7 +17,6 @@ class TodoListModel extends ChangeNotifier {

Credentials? _credentials;
EthereumAddress? _contractAddress;
EthereumAddress? _ownAddress;
DeployedContract? _contract;

ContractFunction? _taskCount;
Expand Down Expand Up @@ -54,7 +52,6 @@ class TodoListModel extends ChangeNotifier {
//秘密鍵を渡して`Credentials`クラスのインスタンスを生成する。
Future<void> getCredentials() async {
_credentials = EthPrivateKey.fromHex(dotenv.env["PRIVATE_KEY"]!);
_ownAddress = _credentials!.address;
}

//`_abiCode`と`_contractAddress`を使用して、スマートコントラクトのインスタンスを作成する。
Expand Down

0 comments on commit 4e7745d

Please sign in to comment.