@@ -145,23 +145,23 @@ impl Costmdls {
145145#[ wasm_bindgen]
146146#[ derive( Clone , Debug , Eq , Ord , PartialEq , PartialOrd ) ]
147147pub struct ExUnitPrices {
148- mem_price : Coin ,
149- step_price : Coin ,
148+ mem_price : SubCoin ,
149+ step_price : SubCoin ,
150150}
151151
152152to_from_bytes ! ( ExUnitPrices ) ;
153153
154154#[ wasm_bindgen]
155155impl ExUnitPrices {
156- pub fn mem_price ( & self ) -> Coin {
156+ pub fn mem_price ( & self ) -> SubCoin {
157157 self . mem_price . clone ( )
158158 }
159159
160- pub fn step_price ( & self ) -> Coin {
160+ pub fn step_price ( & self ) -> SubCoin {
161161 self . step_price . clone ( )
162162 }
163163
164- pub fn new ( mem_price : & Coin , step_price : & Coin ) -> Self {
164+ pub fn new ( mem_price : & SubCoin , step_price : & SubCoin ) -> Self {
165165 Self {
166166 mem_price : mem_price. clone ( ) ,
167167 step_price : step_price. clone ( ) ,
@@ -847,10 +847,10 @@ impl Deserialize for ExUnitPrices {
847847 let mut read_len = CBORReadLen :: new ( len) ;
848848 read_len. read_elems ( 2 ) ?;
849849 let mem_price = ( || -> Result < _ , DeserializeError > {
850- Ok ( Coin :: deserialize ( raw) ?)
850+ Ok ( SubCoin :: deserialize ( raw) ?)
851851 } ) ( ) . map_err ( |e| e. annotate ( "mem_price" ) ) ?;
852852 let step_price = ( || -> Result < _ , DeserializeError > {
853- Ok ( Coin :: deserialize ( raw) ?)
853+ Ok ( SubCoin :: deserialize ( raw) ?)
854854 } ) ( ) . map_err ( |e| e. annotate ( "step_price" ) ) ?;
855855 match len {
856856 cbor_event:: Len :: Len ( _) => ( ) ,
0 commit comments