@@ -48,7 +48,7 @@ use linera_chain::{
48
48
use linera_execution:: {
49
49
committee:: { Committee , Epoch , ValidatorName } ,
50
50
system:: {
51
- AdminOperation , OpenChainConfig , Recipient , SystemChannel , SystemOperation , UserData ,
51
+ AdminOperation , OpenChainConfig , Recipient , SystemChannel , SystemOperation ,
52
52
CREATE_APPLICATION_MESSAGE_INDEX , OPEN_CHAIN_MESSAGE_INDEX ,
53
53
} ,
54
54
ExecutionError , Message , Operation , Query , Response , SystemExecutionError , SystemMessage ,
@@ -1287,20 +1287,18 @@ where
1287
1287
}
1288
1288
1289
1289
/// Sends money.
1290
- #[ tracing:: instrument( level = "trace" , skip ( user_data ) ) ]
1290
+ #[ tracing:: instrument( level = "trace" ) ]
1291
1291
pub async fn transfer (
1292
1292
& self ,
1293
1293
owner : Option < Owner > ,
1294
1294
amount : Amount ,
1295
1295
recipient : Recipient ,
1296
- user_data : UserData ,
1297
1296
) -> Result < ClientOutcome < Certificate > , ChainClientError > {
1298
1297
// TODO(#467): check the balance of `owner` before signing any block proposal.
1299
1298
self . execute_operation ( Operation :: System ( SystemOperation :: Transfer {
1300
1299
owner,
1301
1300
recipient,
1302
1301
amount,
1303
- user_data,
1304
1302
} ) )
1305
1303
. await
1306
1304
}
@@ -1321,21 +1319,19 @@ where
1321
1319
}
1322
1320
1323
1321
/// Claims money in a remote chain.
1324
- #[ tracing:: instrument( level = "trace" , skip ( user_data ) ) ]
1322
+ #[ tracing:: instrument( level = "trace" ) ]
1325
1323
pub async fn claim (
1326
1324
& self ,
1327
1325
owner : Owner ,
1328
1326
target_id : ChainId ,
1329
1327
recipient : Recipient ,
1330
1328
amount : Amount ,
1331
- user_data : UserData ,
1332
1329
) -> Result < ClientOutcome < Certificate > , ChainClientError > {
1333
1330
self . execute_operation ( Operation :: System ( SystemOperation :: Claim {
1334
1331
owner,
1335
1332
target_id,
1336
1333
recipient,
1337
1334
amount,
1338
- user_data,
1339
1335
} ) )
1340
1336
. await
1341
1337
}
@@ -2140,28 +2136,25 @@ where
2140
2136
}
2141
2137
2142
2138
/// Sends tokens to a chain.
2143
- #[ tracing:: instrument( level = "trace" , skip ( user_data ) ) ]
2139
+ #[ tracing:: instrument( level = "trace" ) ]
2144
2140
pub async fn transfer_to_account (
2145
2141
& self ,
2146
2142
owner : Option < Owner > ,
2147
2143
amount : Amount ,
2148
2144
account : Account ,
2149
- user_data : UserData ,
2150
2145
) -> Result < ClientOutcome < Certificate > , ChainClientError > {
2151
- self . transfer ( owner, amount, Recipient :: Account ( account) , user_data )
2146
+ self . transfer ( owner, amount, Recipient :: Account ( account) )
2152
2147
. await
2153
2148
}
2154
2149
2155
2150
/// Burns tokens.
2156
- #[ tracing:: instrument( level = "trace" , skip ( user_data ) ) ]
2151
+ #[ tracing:: instrument( level = "trace" ) ]
2157
2152
pub async fn burn (
2158
2153
& self ,
2159
2154
owner : Option < Owner > ,
2160
2155
amount : Amount ,
2161
- user_data : UserData ,
2162
2156
) -> Result < ClientOutcome < Certificate > , ChainClientError > {
2163
- self . transfer ( owner, amount, Recipient :: Burn , user_data)
2164
- . await
2157
+ self . transfer ( owner, amount, Recipient :: Burn ) . await
2165
2158
}
2166
2159
2167
2160
/// Attempts to synchronize chains that have sent us messages and populate our local
@@ -2722,19 +2715,17 @@ where
2722
2715
/// Sends money to a chain.
2723
2716
/// Do not check balance. (This may block the client)
2724
2717
/// Do not confirm the transaction.
2725
- #[ tracing:: instrument( level = "trace" , skip ( user_data ) ) ]
2718
+ #[ tracing:: instrument( level = "trace" ) ]
2726
2719
pub async fn transfer_to_account_unsafe_unconfirmed (
2727
2720
& self ,
2728
2721
owner : Option < Owner > ,
2729
2722
amount : Amount ,
2730
2723
account : Account ,
2731
- user_data : UserData ,
2732
2724
) -> Result < ClientOutcome < Certificate > , ChainClientError > {
2733
2725
self . execute_operation ( Operation :: System ( SystemOperation :: Transfer {
2734
2726
owner,
2735
2727
recipient : Recipient :: Account ( account) ,
2736
2728
amount,
2737
- user_data,
2738
2729
} ) )
2739
2730
. await
2740
2731
}
0 commit comments