Skip to content

Commit 5b16739

Browse files
committed
Fixed code examples for CreateCampaign again
1 parent 5299193 commit 5b16739

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

primitives/examples/analytics_query.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ fn main() {
4848
&timeframe=week
4949
&start=420
5050
&campaignId=0x936da01f9abd4d9d80c702af85c822a8
51-
&adUnit=Qmasg8FrbuSQpjFu3kRnZF9beg8rEBFrqgi1uXDRwCbX5f
52-
&adSlot=QmcUVX7fvoLMM93uN2bD3wGTH8MXSxeL8hojYfL2Lhp7mR
51+
&adUnit=QmcUVX7fvoLMM93uN2bD3wGTH8MXSxeL8hojYfL2Lhp7mR
52+
&adSlot=Qmasg8FrbuSQpjFu3kRnZF9beg8rEBFrqgi1uXDRwCbX5f
5353
&adSlotType=legacy_300x100
5454
&avertiser=0xDd589B43793934EF6Ad266067A0d1D4896b0dff0
5555
&publisher=0xE882ebF439207a70dDcCb39E13CA8506c9F45fD9
@@ -82,14 +82,14 @@ fn main() {
8282
assert_eq!(
8383
query.ad_unit,
8484
Some(
85-
IPFS::from_str("Qmasg8FrbuSQpjFu3kRnZF9beg8rEBFrqgi1uXDRwCbX5f")
85+
IPFS::from_str("QmcUVX7fvoLMM93uN2bD3wGTH8MXSxeL8hojYfL2Lhp7mR")
8686
.expect("should be valid")
8787
)
8888
);
8989
assert_eq!(
9090
query.ad_slot,
9191
Some(
92-
IPFS::from_str("QmcUVX7fvoLMM93uN2bD3wGTH8MXSxeL8hojYfL2Lhp7mR")
92+
IPFS::from_str("Qmasg8FrbuSQpjFu3kRnZF9beg8rEBFrqgi1uXDRwCbX5f")
9393
.expect("should be valid")
9494
)
9595
);

primitives/examples/create_campaign.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ fn main() {
2424
"validators":[
2525
{
2626
"id":"0x80690751969B234697e9059e04ed72195c3507fa",
27-
"fee":"2000000",
27+
"fee":"3000000",
2828
"url":"http://localhost:8005"
2929
},
3030
{
3131
"id":"0xf3f583AEC5f7C030722Fe992A5688557e1B86ef7",
32-
"fee":"3000000",
32+
"fee":"2000000",
3333
"url":"http://localhost:8006"
3434
}
3535
],
@@ -38,7 +38,7 @@ fn main() {
3838
"eventSubmission":{"allow":[]},
3939
"targetingRules":[],
4040
"created":1612162800000_u64,
41-
"active_to":4073414400000_u64
41+
"activeTo":4073414400000_u64
4242
});
4343

4444
let create_campaign_json =
@@ -71,12 +71,12 @@ fn main() {
7171
"validators":[
7272
{
7373
"id":"0x80690751969B234697e9059e04ed72195c3507fa",
74-
"fee":"2000000",
74+
"fee":"3000000",
7575
"url":"http://localhost:8005"
7676
},
7777
{
7878
"id":"0xf3f583AEC5f7C030722Fe992A5688557e1B86ef7",
79-
"fee":"3000000",
79+
"fee":"2000000",
8080
"url":"http://localhost:8006"
8181
}
8282
],
@@ -85,7 +85,7 @@ fn main() {
8585
"eventSubmission":{"allow":[]},
8686
"targetingRules":[],
8787
"created":1612162800000_u64,
88-
"active_to":4073414400000_u64
88+
"activeTo":4073414400000_u64
8989
});
9090

9191
let create_campaign_json =

0 commit comments

Comments
 (0)