Skip to content

Commit a11e773

Browse files
authored
Merge pull request #3517 from iotaledger/fix_waspcli_requests
chore: Fix client output map
2 parents 607d226 + c266ed7 commit a11e773

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
go-version: "1.23.2"
4848

4949
- name: install rust-toolchain
50-
uses: actions-rs/toolchain@v1.0.7
50+
uses: actions-rust-lang/setup-rust-toolchain@v1
5151
with:
52-
toolchain: 1.80.0
52+
toolchain: nightly-2023-12-18
5353

5454
- name: install wasm-pack
5555
run: |
56-
curl https://raw.githubusercontent.com/rustwasm/wasm-pack/refs/heads/master/docs/_installer/init.sh -sSf | env VERSION=v0.13.0 sh
56+
curl https://raw.githubusercontent.com/rustwasm/wasm-pack/refs/heads/master/docs/_installer/init.sh -sSf | env VERSION=v0.12.1 sh
5757
5858
- name: install schema
5959
run: |

contracts/wasm/testcore/rs/testcoreimpl/src/funcs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ pub fn func_test_event_log_deploy(ctx: &ScFuncContext, _f: &TestEventLogDeployCo
232232
ctx.deploy_contract(&program_hash, CONTRACT_NAME_DEPLOYED, None);
233233
}
234234

235-
pub fn func_test_event_log_event_data(ctx: &ScFuncContext, f: &TestEventLogEventDataContext) {
235+
pub fn func_test_event_log_event_data(_ctx: &ScFuncContext, f: &TestEventLogEventDataContext) {
236236
f.events.test();
237237
}
238238

239-
pub fn func_test_event_log_generic_data(ctx: &ScFuncContext, f: &TestEventLogGenericDataContext) {
239+
pub fn func_test_event_log_generic_data(_ctx: &ScFuncContext, f: &TestEventLogGenericDataContext) {
240240
f.events.counter(f.params.counter().value());
241241
}
242242

contracts/wasm/testwasmlib/rs/testwasmlibimpl/src/funcs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,10 +1381,10 @@ pub fn func_activate(ctx: &ScFuncContext, f: &ActivateContext) {
13811381
testwasmlib::ScFuncs::deactivate(ctx).func.delay(delay).post();
13821382
}
13831383

1384-
pub fn func_deactivate(ctx: &ScFuncContext, f: &DeactivateContext) {
1384+
pub fn func_deactivate(_ctx: &ScFuncContext, f: &DeactivateContext) {
13851385
f.state.active().set_value(false);
13861386
}
13871387

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

packages/l1connection/l1connection.go

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
iotago "github.com/iotaledger/iota.go/v3"
1515
"github.com/iotaledger/iota.go/v3/builder"
1616
"github.com/iotaledger/iota.go/v3/nodeclient"
17+
1718
"github.com/iotaledger/wasp/packages/cryptolib"
1819
"github.com/iotaledger/wasp/packages/isc"
1920
"github.com/iotaledger/wasp/packages/parameters"
@@ -92,8 +93,29 @@ func (c *l1client) OutputMap(myAddress iotago.Address, timeout ...time.Duration)
9293
defer cancelContext()
9394

9495
bech32Addr := myAddress.Bech32(parameters.L1().Protocol.Bech32HRP)
96+
falseParam := false
97+
trueParam := true
98+
9599
queries := []nodeclient.IndexerQuery{
96-
&nodeclient.BasicOutputsQuery{AddressBech32: bech32Addr},
100+
&nodeclient.BasicOutputsQuery{
101+
AddressBech32: bech32Addr,
102+
IndexerTimelockParas: nodeclient.IndexerTimelockParas{
103+
HasTimelock: &trueParam,
104+
TimelockedBefore: uint32(time.Now().Unix()),
105+
},
106+
IndexerNativeTokenParas: nodeclient.IndexerNativeTokenParas{
107+
HasNativeTokens: &falseParam,
108+
},
109+
},
110+
&nodeclient.BasicOutputsQuery{
111+
AddressBech32: bech32Addr,
112+
IndexerTimelockParas: nodeclient.IndexerTimelockParas{
113+
HasTimelock: &falseParam,
114+
},
115+
IndexerNativeTokenParas: nodeclient.IndexerNativeTokenParas{
116+
HasNativeTokens: &falseParam,
117+
},
118+
},
97119
&nodeclient.FoundriesQuery{AliasAddressBech32: bech32Addr},
98120
&nodeclient.NFTsQuery{AddressBech32: bech32Addr},
99121
&nodeclient.AliasesQuery{GovernorBech32: bech32Addr},

0 commit comments

Comments
 (0)