Move.

Post

Share your knowledge.

yhant3.
Mar 21, 2025
Expert Q&A

Does `address` type have `Copy` in Move language?

I'm coming from a JavaScript background without Rust experience, and I'm trying to understand the Move programming language. Specifically, does the address type have the Copy trait like it does for primitive types? And do I need to use references to pass addresses around in Move?

  • Move CLI
  • Move
1
1
Share
Comments
.

Answers

1
tomek.
Mar 22 2025, 01:28

The address type in Move is a primitive type, similar to u64, so you can pass it both by reference or by value. Additionally, there are modules sui::address and std::address that offer useful functions related to addresses.

2
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info