Skip to content

Commit 278f1b6

Browse files
authored
Fix parsing string to int type err (#167)
1 parent a2e6e9d commit 278f1b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/gridproxy_client/lib/models/contracts.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class ContractInfo {
124124

125125
return ContractInfo(
126126
contract_id: json['contract_id'] ?? 0,
127-
nodeId: json['details']['nodeId'] ?? '',
127+
nodeId: json['details']['nodeId'] ?? 0,
128128
created_at: json['created_at'] ?? 0,
129129
details: details,
130130
state: json['state'] ?? '',

0 commit comments

Comments
 (0)