-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into aschran/cc-estimator-2
- Loading branch information
Showing
148 changed files
with
6,322 additions
and
2,972 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
crates/sui-adapter-transactional-tests/tests/dev_inspect/reference_return_value.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
processed 3 tasks | ||
|
||
init: | ||
A: object(0,0) | ||
|
||
task 1, lines 8-14: | ||
//# publish | ||
created: object(1,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 3465600, storage_rebate: 0, non_refundable_storage_fee: 0 | ||
|
||
task 2, lines 16-17: | ||
//# programmable --sender A --inputs 0 --dev-inspect | ||
//> 0: test::m::return_ref(Input(0)); | ||
mutated: object(_) | ||
gas summary: computation_cost: 500000, storage_cost: 988000, storage_rebate: 0, non_refundable_storage_fee: 0 |
17 changes: 17 additions & 0 deletions
17
crates/sui-adapter-transactional-tests/tests/dev_inspect/reference_return_value.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// attempt to return a reference from a function | ||
|
||
//# init --addresses test=0x0 --accounts A | ||
|
||
//# publish | ||
|
||
module test::m { | ||
public fun return_ref(n: &u64): &u64 { | ||
n | ||
} | ||
} | ||
|
||
//# programmable --sender A --inputs 0 --dev-inspect | ||
//> 0: test::m::return_ref(Input(0)); |
16 changes: 16 additions & 0 deletions
16
crates/sui-adapter-transactional-tests/tests/dry_run/reference_return_value.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
processed 3 tasks | ||
|
||
init: | ||
A: object(0,0) | ||
|
||
task 1, lines 8-14: | ||
//# publish | ||
created: object(1,0) | ||
mutated: object(0,1) | ||
gas summary: computation_cost: 1000000, storage_cost: 3465600, storage_rebate: 0, non_refundable_storage_fee: 0 | ||
|
||
task 2, lines 16-17: | ||
//# programmable --sender A --inputs 0 --dry-run | ||
//> 0: test::m::return_ref(Input(0)); | ||
Error: Transaction Effects Status: InvalidPublicFunctionReturnType { idx: 0 } in command 0 | ||
Execution Error: InvalidPublicFunctionReturnType { idx: 0 } in command 0 |
17 changes: 17 additions & 0 deletions
17
crates/sui-adapter-transactional-tests/tests/dry_run/reference_return_value.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// attempt to return a reference from a function | ||
|
||
//# init --addresses test=0x0 --accounts A | ||
|
||
//# publish | ||
|
||
module test::m { | ||
public fun return_ref(n: &u64): &u64 { | ||
n | ||
} | ||
} | ||
|
||
//# programmable --sender A --inputs 0 --dry-run | ||
//> 0: test::m::return_ref(Input(0)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.