mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
WIP: trim hex at beginning
This commit is contained in:
parent
3d5e8812e1
commit
8e2c8c8b53
1 changed files with 14 additions and 1 deletions
|
@ -3355,9 +3355,22 @@ class ParticlWallet extends CoinServiceAPI {
|
|||
final builtTx = txb.build();
|
||||
final vSize = builtTx.virtualSize();
|
||||
|
||||
print("BUILT TX IS ${builtTx.toHex()}");
|
||||
print("BUILT TX IS ${builtTx.toHex().toString()}");
|
||||
|
||||
String hexBefore = builtTx.toHex();
|
||||
if (builtTx.toHex().toString().endsWith('0000')) {
|
||||
// print("END WITH ZERO");
|
||||
String stripped = hexBefore.substring(0, hexBefore.length - 4);
|
||||
return {"hex": stripped, "vSize": vSize};
|
||||
// } else {
|
||||
// print("DOES NOT END WITH ZERO");
|
||||
// return {"hex": builtTx.toHex(), "vSize": vSize};
|
||||
}
|
||||
return {"hex": builtTx.toHex(), "vSize": vSize};
|
||||
|
||||
// print("AND NOW IT IS $stripped");
|
||||
//
|
||||
// return {"hex": stripped, "vSize": vSize};
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue