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:
parent
d2f1c7180a
commit
8390c12599
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user