@@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize};
66use crate :: {
77 key_source:: KeySource ,
88 node_targets:: { NodeTarget , NodeTargets } ,
9- state:: { CannonId , HeightRequest , InternedId } ,
9+ state:: HeightRequest ,
1010} ;
1111
1212#[ derive( Deserialize , Serialize , Clone ) ]
@@ -41,6 +41,10 @@ fn credits_aleo() -> String {
4141 "credits.aleo" . to_owned ( )
4242}
4343
44+ fn default_str ( ) -> String {
45+ "default" . to_owned ( )
46+ }
47+
4448#[ derive( Debug , Clone , Serialize , Deserialize ) ]
4549#[ serde( rename_all = "snake_case" ) ]
4650pub struct ExecuteAction {
@@ -57,8 +61,8 @@ pub struct ExecuteAction {
5761 /// The function to call
5862 pub function : String ,
5963 /// The cannon id of who to execute the transaction
60- #[ serde( default ) ]
61- pub cannon : CannonId ,
64+ #[ serde( default = "default_str" ) ]
65+ pub cannon : String ,
6266 /// The inputs to the function
6367 pub inputs : Vec < AleoValue > ,
6468 /// The optional priority fee
@@ -82,8 +86,8 @@ pub struct DeployAction {
8286 /// The program to deploy
8387 pub program : String ,
8488 /// The cannon id of who to execute the transaction
85- #[ serde( default ) ]
86- pub cannon : CannonId ,
89+ #[ serde( default = "default_str" ) ]
90+ pub cannon : String ,
8791 /// The optional priority fee
8892 #[ serde( default ) ]
8993 pub priority_fee : Option < u64 > ,
@@ -122,7 +126,7 @@ pub struct Reconfig {
122126 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
123127 pub validators : Option < NodeTargets > ,
124128 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
125- pub binary : Option < InternedId > ,
129+ pub binary : Option < String > ,
126130 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
127131 pub private_key : Option < KeySource > ,
128132 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
0 commit comments