mirror of
https://github.com/wownero/cyberwow.git
synced 2026-12-05 14:43:58 +01:00
display hash in tokens
This commit is contained in:
@@ -33,6 +33,6 @@ const emuHost = '192.168.10.100';
|
||||
|
||||
const host = isEmu ? emuHost : '127.0.0.1';
|
||||
|
||||
const int hashLength = 12;
|
||||
const int hashViewBlock = 6;
|
||||
const stdoutLineBufferSize = 100;
|
||||
|
||||
|
||||
@@ -32,7 +32,12 @@ String pretty(dynamic x) {
|
||||
;
|
||||
}
|
||||
|
||||
String trimHash(String x) => x.substring(0, config.hashLength) + ' ...';
|
||||
String trimHash(String x) =>
|
||||
x.substring(0, config.hashViewBlock)
|
||||
+ '-'
|
||||
+ x.substring(config.hashViewBlock, config.hashViewBlock * 2)
|
||||
+ ' ...';
|
||||
|
||||
Map<String, dynamic> cleanKey(Map<String, dynamic> x) {
|
||||
final _cleaned = x.map
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user