Skip to content

Commit

Permalink
Fix custom types
Browse files Browse the repository at this point in the history
  • Loading branch information
akru committed Jan 1, 2020
1 parent ab2b716 commit b0a9bb9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 2 additions & 3 deletions bin/node/cli/res/custom_types.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"TechnicalParam": "Vec<u8>",
"TechnicalReport": "Vec<u8>",
"EconomicalParam": "{}",
"ProofParam": "MultiSignature",
"Technics": "Vec<u8>",
"Economics": "{}",
"Report": "Vec<u8>"
"LiabilityIndex": "u64"
}
12 changes: 4 additions & 8 deletions robonomics/frame/provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ impl<T: Trait> Default for WorkerState<T> {
decl_event!(
pub enum Event<T>
where AccountId = AccountId<T>,
Technics = TechnicalParam<T>,
Economics = EconomicalParam<T>,
TechnicalParam = TechnicalParam<T>,
EconomicalParam = EconomicalParam<T>,
{
NewDemand(Technics, Economics, AccountId),
NewOffer(Technics, Economics, AccountId),
NewDemand(TechnicalParam, EconomicalParam, AccountId),
NewOffer(TechnicalParam, EconomicalParam, AccountId),
}
);

Expand Down Expand Up @@ -160,10 +160,6 @@ decl_module! {
economics: EconomicalParam<T>,
proof: ProofParam<T>,
) {
debug::info!(
target: "robonomics-provider",
"Demand params: {:?}, {:?}", technics, economics
);
let sender = ensure_signed(origin)?;
let liability = T::Liability::new(
technics.clone(),
Expand Down

0 comments on commit b0a9bb9

Please sign in to comment.