Skip to content

Commit

Permalink
Try to get rust tests to work again
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoe committed Dec 5, 2024
1 parent 85eb9ac commit c266ed7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
go-version: "1.23.2"

- name: install rust-toolchain
uses: actions-rs/toolchain@v1.0.7
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.80.0
toolchain: nightly-2023-12-18

- name: install wasm-pack
run: |
curl https://raw.githubusercontent.com/rustwasm/wasm-pack/refs/heads/master/docs/_installer/init.sh -sSf | env VERSION=v0.13.0 sh
curl https://raw.githubusercontent.com/rustwasm/wasm-pack/refs/heads/master/docs/_installer/init.sh -sSf | env VERSION=v0.12.1 sh
- name: install schema
run: |
Expand Down
4 changes: 2 additions & 2 deletions contracts/wasm/testcore/rs/testcoreimpl/src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ pub fn func_test_event_log_deploy(ctx: &ScFuncContext, _f: &TestEventLogDeployCo
ctx.deploy_contract(&program_hash, CONTRACT_NAME_DEPLOYED, None);
}

pub fn func_test_event_log_event_data(ctx: &ScFuncContext, f: &TestEventLogEventDataContext) {
pub fn func_test_event_log_event_data(_ctx: &ScFuncContext, f: &TestEventLogEventDataContext) {
f.events.test();
}

pub fn func_test_event_log_generic_data(ctx: &ScFuncContext, f: &TestEventLogGenericDataContext) {
pub fn func_test_event_log_generic_data(_ctx: &ScFuncContext, f: &TestEventLogGenericDataContext) {
f.events.counter(f.params.counter().value());
}

Expand Down
4 changes: 2 additions & 2 deletions contracts/wasm/testwasmlib/rs/testwasmlibimpl/src/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1381,10 +1381,10 @@ pub fn func_activate(ctx: &ScFuncContext, f: &ActivateContext) {
testwasmlib::ScFuncs::deactivate(ctx).func.delay(delay).post();
}

pub fn func_deactivate(ctx: &ScFuncContext, f: &DeactivateContext) {
pub fn func_deactivate(_ctx: &ScFuncContext, f: &DeactivateContext) {
f.state.active().set_value(false);
}

pub fn view_get_active(ctx: &ScViewContext, f: &GetActiveContext) {
pub fn view_get_active(_ctx: &ScViewContext, f: &GetActiveContext) {
f.results.active().set_value(f.state.active().value());
}

0 comments on commit c266ed7

Please sign in to comment.