@@ -12,8 +12,8 @@ use std::{
1212use iota_graphql_client:: Client ;
1313use iota_types:: {
1414 Address , GasPayment , Identifier , MovePackageData , ObjectId , ObjectReference , Owner ,
15- ProgrammableTransaction , StructTag , Transaction , TransactionEffects , TransactionExpiration ,
16- TransactionV1 , TypeTag ,
15+ ProgrammableTransaction , SharedObjectReference , StructTag , Transaction , TransactionEffects ,
16+ TransactionExpiration , TransactionV1 , TypeTag ,
1717} ;
1818use reqwest:: Url ;
1919use serde:: Serialize ;
@@ -157,10 +157,7 @@ impl TransactionBuildData {
157157
158158 /// Add a pure input using the BCS serialized bytes
159159 pub fn pure_bytes ( & mut self , bytes : Vec < u8 > ) -> Argument {
160- self . set_input (
161- InputKind :: Input ( iota_types:: Input :: Pure { value : bytes } ) ,
162- false ,
163- )
160+ self . set_input ( InputKind :: Input ( iota_types:: Input :: Pure ( bytes) ) , false )
164161 }
165162
166163 /// Add a pure input
@@ -1038,11 +1035,11 @@ impl<C: ClientMethods, L> TransactionBuilder<C, L> {
10381035 obj. digest ( ) ,
10391036 ) )
10401037 }
1041- Owner :: Shared ( v) => iota_types:: Input :: Shared {
1038+ Owner :: Shared ( v) => iota_types:: Input :: Shared ( SharedObjectReference {
10421039 object_id,
10431040 initial_shared_version : * v,
10441041 mutable : false ,
1045- } ,
1042+ } ) ,
10461043 _ => unimplemented ! (
10471044 "a new enum variant was added and needs to be handled"
10481045 ) ,
@@ -1061,11 +1058,13 @@ impl<C: ClientMethods, L> TransactionBuilder<C, L> {
10611058 . ok_or_else ( || Error :: Input ( format ! ( "missing object {object_id}" ) ) ) ?;
10621059
10631060 let input = match obj. owner ( ) {
1064- Owner :: Shared ( version) => iota_types:: Input :: Shared {
1065- object_id,
1066- initial_shared_version : * version,
1067- mutable,
1068- } ,
1061+ Owner :: Shared ( version) => {
1062+ iota_types:: Input :: Shared ( SharedObjectReference {
1063+ object_id,
1064+ initial_shared_version : * version,
1065+ mutable,
1066+ } )
1067+ }
10691068 _ => {
10701069 return Err ( Error :: Input ( format ! (
10711070 "object {object_id} was passed as shared, but is not"
0 commit comments