Skip to content

Commit

Permalink
[move] Fix move compiler tests (#19353)
Browse files Browse the repository at this point in the history
## Description 

Fix some move compiler tests that landed in a broken state somehow.

## Test plan 

CI/ran them locally.

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
tzakian authored Sep 13, 2024
1 parent e605d22 commit c78f490
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,27 @@ module sui::tx_context {
}

module sui::object {
const ZERO: u64 = 0;
struct UID has store {
id: address,
}
public fun delete(_: UID) {
loop {}
abort ZERO
}
public fun new(_: &mut sui::tx_context::TxContext): UID {
loop {}
abort ZERO
}
}

module sui::transfer {
const ZERO: u64 = 0;
public fun transfer<T: key>(_: T, _: address) {
loop {}
abort ZERO
}
public fun share_object<T: key>(_: T) {
loop {}
abort ZERO
}
public fun public_share_object<T: key>(_: T) {
loop {}
abort ZERO
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,27 @@ module sui::tx_context {
}

module sui::object {
const ZERO: u64 = 0;
struct UID has store {
id: address,
}
public fun delete(_: UID) {
loop {}
abort ZERO
}
public fun new(_: &mut sui::tx_context::TxContext): UID {
loop {}
abort ZERO
}
}

module sui::transfer {
const ZERO: u64 = 0;
public fun transfer<T: key>(_: T, _: address) {
loop {}
abort ZERO
}
public fun share_object<T: key>(_: T) {
loop {}
abort ZERO
}
public fun public_share_object<T: key>(_: T) {
loop {}
abort ZERO
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,27 @@ module sui::tx_context {
}

module sui::object {
const ZERO: u64 = 0;
struct UID has store {
id: address,
}
public fun delete(_: UID) {
loop {}
abort ZERO
}
public fun new(_: &mut sui::tx_context::TxContext): UID {
loop {}
abort ZERO
}
}

module sui::transfer {
const ZERO: u64 = 0;
public fun transfer<T: key>(_: T, _: address) {
loop {}
abort ZERO
}
public fun share_object<T: key>(_: T) {
loop {}
abort ZERO
}
public fun public_share_object<T: key>(_: T) {
loop {}
abort ZERO
}
}

0 comments on commit c78f490

Please sign in to comment.