1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

fix shifting

This commit is contained in:
Sebastian Gerske 2018-11-22 10:58:24 +01:00
parent d2f1c7180a
commit 8390c12599

View File

@ -143,11 +143,11 @@ export default class ServiceAgreementTemplate extends OceanBase {
const depShift: number = d * 2 ** (offset + 0)
Logger.log("ds", depShift)
// tslint:disable-next-line
compressedDependencyValue ^= depShift // the dependency bit
compressedDependencyValue |= depShift // the dependency bit
const timeShift: number = timeout * 2 ** (offset + 1)
Logger.log("ts", timeShift)
// tslint:disable-next-line
compressedDependencyValue ^= timeShift // the timeout bit
compressedDependencyValue |= timeShift // the timeout bit
})
Logger.log(compressedDependencyValue)