diff --git a/aptos-move/framework/aptos-framework/doc/object.md b/aptos-move/framework/aptos-framework/doc/object.md index 98c90699158be..bee5801941f75 100644 --- a/aptos-move/framework/aptos-framework/doc/object.md +++ b/aptos-move/framework/aptos-framework/doc/object.md @@ -579,7 +579,7 @@ Derives an object address from source material: sha3_256([creator address | seed Returns the address of within an ObjectId. -
public fun object_address<T>(object: &object::Object<T>): address
+
public fun object_address<T: key>(object: &object::Object<T>): address
 
@@ -588,7 +588,7 @@ Returns the address of within an ObjectId. Implementation -
public fun object_address<T>(object: &Object<T>): address {
+
public fun object_address<T: key>(object: &Object<T>): address {
     object.inner
 }
 
diff --git a/aptos-move/framework/aptos-framework/sources/object.move b/aptos-move/framework/aptos-framework/sources/object.move index 95d3ab777d027..0681d13faa30e 100644 --- a/aptos-move/framework/aptos-framework/sources/object.move +++ b/aptos-move/framework/aptos-framework/sources/object.move @@ -145,7 +145,7 @@ module aptos_framework::object { native fun exists_at(object: address): bool; /// Returns the address of within an ObjectId. - public fun object_address(object: &Object): address { + public fun object_address(object: &Object): address { object.inner }