1
1
use super :: Address ;
2
2
use super :: Digest ;
3
3
use super :: Identifier ;
4
- use super :: ObjectId ;
5
4
6
5
/// The status of an executed Transaction
7
6
///
@@ -89,7 +88,7 @@ pub enum ExecutionStatus {
89
88
/// feature-not-yet-supported = %x03
90
89
/// object-too-big = %x04 u64 u64
91
90
/// package-too-big = %x05 u64 u64
92
- /// circular-object-ownership = %x06 object-id
91
+ /// circular-object-ownership = %x06 address
93
92
/// insufficient-coin-balance = %x07
94
93
/// coin-balance-overflow = %x08
95
94
/// publish-error-non-zero-address = %x09
@@ -116,7 +115,7 @@ pub enum ExecutionStatus {
116
115
/// sui-move-verification-timedout = %x1e
117
116
/// shared-object-operation-not-allowed = %x1f
118
117
/// input-object-deleted = %x20
119
- /// execution-canceled-due-to-shared-object-congestion = %x21 (vector object-id )
118
+ /// execution-canceled-due-to-shared-object-congestion = %x21 (vector address )
120
119
/// address-denied-for-coin = %x22 address string
121
120
/// coin-type-global-pause = %x23 string
122
121
/// execution-canceled-due-to-randomness-unavailable = %x24
@@ -150,7 +149,7 @@ pub enum ExecutionError {
150
149
max_object_size : u64 ,
151
150
} ,
152
151
/// Circular Object Ownership
153
- CircularObjectOwnership { object : ObjectId } ,
152
+ CircularObjectOwnership { object : Address } ,
154
153
155
154
//
156
155
// Coin errors
@@ -256,7 +255,7 @@ pub enum ExecutionError {
256
255
/// Certificate is canceled due to congestion on shared objects
257
256
ExecutionCanceledDueToSharedObjectCongestion {
258
257
#[ cfg_attr( feature = "proptest" , any( proptest:: collection:: size_range( 0 ..=1 ) . lift( ) ) ) ]
259
- congested_objects : Vec < ObjectId > ,
258
+ congested_objects : Vec < Address > ,
260
259
} ,
261
260
262
261
/// Address is denied for this coin type
@@ -295,7 +294,7 @@ pub enum ExecutionError {
295
294
/// The BCS serialized form for this type is defined by the following ABNF:
296
295
///
297
296
/// ```text
298
- /// move-location = object-id identifier u16 u16 (option identifier)
297
+ /// move-location = address identifier u16 u16 (option identifier)
299
298
/// ```
300
299
#[ derive( Eq , PartialEq , Clone , Debug ) ]
301
300
#[ cfg_attr(
@@ -305,7 +304,7 @@ pub enum ExecutionError {
305
304
#[ cfg_attr( feature = "proptest" , derive( test_strategy:: Arbitrary ) ) ]
306
305
pub struct MoveLocation {
307
306
/// The package id
308
- pub package : ObjectId ,
307
+ pub package : Address ,
309
308
310
309
/// The module name
311
310
pub module : Identifier ,
@@ -423,12 +422,12 @@ pub enum CommandArgumentError {
423
422
/// unknown-upgrade-policy /
424
423
/// package-id-does-not-match
425
424
///
426
- /// unable-to-fetch-package = %x00 object-id
427
- /// not-a-package = %x01 object-id
425
+ /// unable-to-fetch-package = %x00 address
426
+ /// not-a-package = %x01 address
428
427
/// incompatible-upgrade = %x02
429
428
/// digest-does-not-match = %x03 digest
430
429
/// unknown-upgrade-policy = %x04 u8
431
- /// package-id-does-not-match = %x05 object-id object-id
430
+ /// package-id-does-not-match = %x05 address address
432
431
/// ```
433
432
#[ derive( Eq , PartialEq , Clone , Debug ) ]
434
433
#[ cfg_attr(
@@ -438,10 +437,10 @@ pub enum CommandArgumentError {
438
437
#[ cfg_attr( feature = "proptest" , derive( test_strategy:: Arbitrary ) ) ]
439
438
pub enum PackageUpgradeError {
440
439
/// Unable to fetch package
441
- UnableToFetchPackage { package_id : ObjectId } ,
440
+ UnableToFetchPackage { package_id : Address } ,
442
441
443
442
/// Object is not a package
444
- NotAPackage { object_id : ObjectId } ,
443
+ NotAPackage { object_id : Address } ,
445
444
446
445
/// Package upgrade is incompatible with previous version
447
446
IncompatibleUpgrade ,
@@ -454,8 +453,8 @@ pub enum PackageUpgradeError {
454
453
455
454
/// PackageId does not matach PackageId in upgrade ticket
456
455
PackageIdDoesNotMatch {
457
- package_id : ObjectId ,
458
- ticket_id : ObjectId ,
456
+ package_id : Address ,
457
+ ticket_id : Address ,
459
458
} ,
460
459
}
461
460
0 commit comments