constructPaymasterAndData method
Implementation
Uint8List constructPaymasterAndData(String paymasterAddress,
String validTimeRangeHex, String signedPayMasterData) {
Uint8List paymasterAddressBuffer =
Uint8List.fromList(hex.decode(paymasterAddress.substring(2)));
Uint8List zBuffer =
Uint8List.fromList(hex.decode(validTimeRangeHex.substring(2)));
Uint8List signedPayMasterDataBuffer =
Uint8List.fromList(hex.decode(signedPayMasterData.substring(2)));
List<Uint8List> buffers = [
paymasterAddressBuffer,
zBuffer,
signedPayMasterDataBuffer,
];
return concatenateBuffers(buffers);
}