Skip to content

Commit

Permalink
error: use a narrower error type to go into TransactionEffects
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Jun 17, 2022
1 parent 79edece commit 8f38511
Show file tree
Hide file tree
Showing 68 changed files with 621 additions and 914 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ task 6 'run'. lines 86-88:
written: object(109), object(111), object(112)

task 7 'run'. lines 89-89:
Error: When an (either direct or indirect) child object of a shared object is passed as a Move argument,either the child object's type or the shared object's type must be defined in the same module as the called function. This is violated by object fake(109) (defined in module 'T1::O1'), whose ancestor fake(111) is a shared object (defined in module 'T2::O2'), and neither are defined in this module 'T1::O1'
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: InvalidSharedChildUse, source: None } }

task 8 'run'. lines 91-91:
written: object(109), object(111), object(114)
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ created: object(103)
written: object(102)

task 2 'run'. lines 26-26:
Error: Non-`entry` function used for entry point to execution: "Can only call `entry` functions".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: InvalidNonEntryFunction, source: None } }

task 3 'run'. lines 28-28:
Error: Non-`entry` function used for entry point to execution: "Can only call `entry` functions".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: InvalidNonEntryFunction, source: None } }

task 4 'run'. lines 30-30:
Error: Non-`entry` function used for entry point to execution: "Can only call `entry` functions".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: InvalidNonEntryFunction, source: None } }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
processed 2 tasks

task 1 'publish'. lines 5-24:
Error: Failed to verify the Move module, reason: "Expected exactly one parameter for _::M1::init of type &mut sui::tx_context::TxContext".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: None } }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
processed 2 tasks

task 1 'publish'. lines 5-25:
Error: Failed to verify the Move module, reason: "_::M1. 'init' function must be private".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: None } }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
processed 2 tasks

task 1 'publish'. lines 5-26:
Error: Failed to verify the Move module, reason: "_::M1, 'init' function cannot have return values".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModuleVerificationFailure, source: None } }
4 changes: 2 additions & 2 deletions crates/sui-adapter-transactional-tests/tests/sui/freeze.exp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ task 2 'run'. lines 10-10:
written: object(104), object(105)

task 3 'run'. lines 12-12:
Error: Type error while binding function arguments: "Only owned object can be passed by-value, violation found in argument 0".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: TypeError, source: None } }

task 4 'run'. lines 14-14:
Error: Type error while binding function arguments: "Argument 0 is expected to be mutable, immutable object found".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: TypeError, source: None } }
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ created: object(103)
written: object(102)

task 2 'run'. lines 14-16:
Error: Function signature is invalid: "Expected 2 arguments calling function 'create', but found 1".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: InvalidFunctionSignature, source: None } }

task 3 'run'. lines 17-17:
Error: Execution aborted: "VMError with status FAILED_TO_DESERIALIZE_ARGUMENT at location UNDEFINED".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: VmError, source: None } }
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
processed 2 tasks

task 0 'run'. lines 7-9:
Error: Failed to verify the Move module, reason: "VMError with status LINKER_ERROR at location UNDEFINED and message Cannot find ModuleId { address: _, name: Identifier(\"object_basics\") } in data cache".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: VmError, source: None } }

task 1 'run'. lines 10-10:
Error: Function resolution failure: "Could not resolve function 'foo' in module sui::object_basics".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: FunctionNotFound, source: None } }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
processed 2 tasks

task 1 'publish'. lines 8-10:
Error: Failed to publish the Move module(s), reason: "Publishing module M with non-zero address is not allowed".
Error: Error executing ExecutionError: ExecutionError { inner: ExecutionErrorInner { kind: ModulePublishFailure, source: None } }
Loading

0 comments on commit 8f38511

Please sign in to comment.