Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3960
3 votes
0 answers
99 views

sending an http request in unit tests?

My code looks as follows: let (mut offchain, _offchain_state) = TestOffchainExt::with_offchain_db(ext.offchain_db()); ext.register_extension(OffchainWorkerExt::new(offchain.clone())); if let … Ok(request) = offchain.http_request_start("GET", "http://127.0.0.1:9800", &[]) { offchain.http_response_wait(&[request], None); } which yields a panic in primitives/core/src/offchain/testing.rs …
Yury Yukhananov's user avatar
2 votes
1 answer
47 views

can't use BTreeMap with custom key struct for offchain Local Storage

I'm trying to use sp_std::collections::btree_map::BTreeMap for offchain worker Local Storage. …
Yury Yukhananov's user avatar