Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Feb 3, 2024
1 parent b831605 commit ba547c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/polkadart/lib/extrinsic/signing_payload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ class SigningPayload {
final payloadEncoded = Uint8List.fromList(hex.decode(payload));

// See rust code: https://github.com/paritytech/polkadot-sdk/blob/e349fc9ef8354eea1bafc1040c20d6fe3189e1ec/substrate/primitives/runtime/src/generic/unchecked_extrinsic.rs#L253
return payloadEncoded.length > 256 ? Blake2bHasher(32).hash(payloadEncoded) : payloadEncoded;
return payloadEncoded.length > 256
? Blake2bHasher(32).hash(payloadEncoded)
: payloadEncoded;
}

bool _usesChargeAssetTxPayment(dynamic registry) {
Expand Down

0 comments on commit ba547c6

Please sign in to comment.