You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!
export const getUTCDayStartByDivision = (interval=86400000): number => { // 1 day default
const now = Date.now();
return Math.floor(now / interval) * interval;
}
// Provide daily data for the next 7 days
const time = WOWOK.getUTCDayStartByDivision();
for (let i = 0; i < 7; i++) {
const addr = WOWOK.normalizeSuiAddress((time + 24*60*60*1000*i).toString());
}
We need to compare two addresses on the chain that are converted from the same number:
bcs.ser('address', normalizeSuiAddress('6666666666'); to the chain
and
sui::address:from_u256(6666666666); on the chain.
They're not equal. Is it a big-endian encoding problem? What if the solution makes them equal?
The text was updated successfully, but these errors were encountered: