Skip to content

vp_implicit: lowercase hash in whitelist acceptance test#1037

Merged
juped merged 3 commits intomainfrom
ray/fix-whitelist-implicit-test
Jan 19, 2023
Merged

vp_implicit: lowercase hash in whitelist acceptance test#1037
juped merged 3 commits intomainfrom
ray/fix-whitelist-implicit-test

Conversation

@juped
Copy link
Copy Markdown
Contributor

@juped juped commented Jan 17, 2023

error introduced by #1018

@juped
Copy link
Copy Markdown
Contributor Author

juped commented Jan 17, 2023

This fixes it locally, not sure what is up with CI (@Fraccaman?)

running 12 tests
test vp_implicit::tests::test_no_op_transaction ... ok <0.003s>
test vp_implicit::tests::test_reveal_wrong_pk_rejected ... ok <0.007s>
test vp_implicit::tests::test_can_reveal_pk ... ok <0.012s>
test vp_implicit::tests::test_unsigned_debit_transfer_rejected ... ok <0.013s>
test vp_implicit::tests::test_transfer_between_other_parties_accepted ... ok <0.014s>
test vp_implicit::tests::test_credit_transfer_accepted ... ok <0.018s>
test vp_implicit::tests::test_signed_debit_transfer_accepted ... ok <0.018s>
test vp_implicit::tests::test_unsigned_vp_update_rejected ... ok <0.019s>
test vp_implicit::tests::test_tx_whitelisted_accepted ... ok <0.022s>
test vp_implicit::tests::test_tx_not_whitelisted_rejected ... ok <0.041s>
test vp_implicit::tests::test_unsigned_arb_storage_write_rejected ... ok <0.860s>
test vp_implicit::tests::test_signed_arb_storage_write ... ok <1.213s>

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.21s

@juped juped force-pushed the ray/fix-whitelist-implicit-test branch from 2018ed9 to b0eee6c Compare January 17, 2023 09:43
juped added a commit that referenced this pull request Jan 17, 2023
juped added a commit that referenced this pull request Jan 17, 2023
* ray/fix-whitelist-implicit-test:
  changelog: add #1037
  vp_implicit: lowercase hash in whitelist acceptance test
@juped juped mentioned this pull request Jan 17, 2023
juped added a commit that referenced this pull request Jan 17, 2023
@juped juped force-pushed the ray/fix-whitelist-implicit-test branch from a50ce10 to 4166d37 Compare January 17, 2023 19:38

// hardcoded hash of VP_ALWAYS_TRUE_WASM
tx_env.init_parameters(None, None, Some(vec!["E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855".to_string()]));
tx_env.init_parameters(None, None, Some(vec!["E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855".to_string().to_lowercase()]));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not very important, but we don't need to lowercase here anymore

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will take this lowercasing out as a canary for init_parameters somehow failing to do it.

tzemanovic
tzemanovic previously approved these changes Jan 18, 2023
@juped juped force-pushed the ray/fix-whitelist-implicit-test branch from 4166d37 to ce53ae3 Compare January 18, 2023 17:18
@juped juped merged commit 1829357 into main Jan 19, 2023
@juped juped deleted the ray/fix-whitelist-implicit-test branch January 19, 2023 14:15
juped added a commit that referenced this pull request Jan 20, 2023
* ray/fix-whitelist-implicit-test:
  wasm: update checksums.json
  changelog: add #1037
  storage: correct whitelist lowercasing and iteration
bengtlofgren pushed a commit that referenced this pull request May 11, 2023
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