8000 Fix expiry in test-vector by frederikrothenberger · Pull Request #698 · dfinity/ic-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix expiry in test-vector #698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 23, 2024
Merged

Fix expiry in test-vector #698

merged 4 commits into from
Aug 23, 2024

Conversation

frederikrothenberger
Copy link

Motivation

Expiry takes as a constructor argument the time delta in millis. Supplied was the absolute timestamp as a number (but too large to use accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then ICRC-29.

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to
use accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.
@frederikrothenberger frederikrothenberger requested review from a team as code owners August 15, 2024 07:54
Copy link
Contributor
github-actions bot commented Aug 15, 2024

size-limit report 📦

Path Size
@dfinity/ckbtc 7.91 KB (0%)
@dfinity/cketh 3.56 KB (0%)
@dfinity/cmc 1.29 KB (0%)
@dfinity/ledger-icrc 3.9 KB (0%)
@dfinity/ledger-icp 15.23 KB (0%)
@dfinity/nns 35.68 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 15.71 KB (0%)
@dfinity/utils 4.47 KB (0%)
@dfinity/ic-management 2.78 KB (0%)

@@ -37,7 +37,7 @@ const consentMessageRequest = {
"4449444C076D7B6C01D880C6D007716C02CBAEB581017AB183E7F1077A6B028BEABFC2067F8EF1C1EE0D026E036C02EFCEE7800401C4FBF2DB05046C03D6FCA70200E1EDEB4A7184F7FEE80A0501060C4449444C00017104746F626905677265657402656E01011E000300",
),
canister_id: Principal.fromHex("00000000006000FD0101"),
ingress_expiry: new Expiry(1712666698482000000),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frederikrothenberger the helper _prepareCborForLedger expects a type Expiry in ingress_expiry.

Apparently it's ok to pass a negative number. Therefore, I calculated the delta.

I'm not sure how then Expiry will convert this to the actual number. There might be a small delay that messes with it.

Copy link
Contributor
@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @frederikrothenberger .

I push a commit to fix the script.

@lmuntaner lmuntaner merged commit 31aac8a into test-vectors Aug 23, 2024
9 checks passed
@lmuntaner lmuntaner deleted the frederik/fix-test-vector branch August 23, 2024 14:08
lmuntaner added a commit that referenced this pull request Oct 7, 2024
# Motivation

Expiry takes as a constructor argument the time _delta_ in milli
8000
s.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
lmuntaner added a commit that referenced this pull request Nov 14, 2024
# Motivation

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
lmuntaner added a commit that referenced this pull request Nov 22, 2024
# Motivation

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
lmuntaner added a commit that referenced this pull request Dec 18, 2024
# Motivation

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
lmuntaner added a commit that referenced this pull request Feb 5, 2025
# Motivation

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
lmuntaner added a commit that referenced this pull request Mar 19, 2025
# Motivation

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
lmuntaner added a commit that referenced this pull request Mar 21, 2025
# Motivation

Expiry takes as a constructor argument the time _delta_ in millis.
Supplied was the absolute timestamp as a number (but too large to use
accurate integer representation).

This fixes the bug.

In addition, the test vector should be called ICRC-21 rather then
ICRC-29.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Llorenç <llorenc.muntaner@dfinity.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0