Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge std and core libraries #6729

Open
wants to merge 98 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
387e4ed
move primitive_conversions
SwayStar123 Nov 18, 2024
cb63d64
more raw_ptr
SwayStar123 Nov 18, 2024
771081f
move codec
SwayStar123 Nov 18, 2024
129e18e
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Nov 18, 2024
0d24485
remove uses of core::codec in std lib
SwayStar123 Nov 18, 2024
29c1b40
add codec to lib.sw
SwayStar123 Nov 18, 2024
6a14300
change order of libs in lib.sw
SwayStar123 Nov 18, 2024
f954429
move slice, ops, primitves
SwayStar123 Nov 18, 2024
24361d7
move never and str, add core imports to prelude
SwayStar123 Nov 18, 2024
109c11b
remove slice import - i tihnk unnecessary in ops
SwayStar123 Nov 18, 2024
33ace1b
add str to lib.sw
SwayStar123 Nov 18, 2024
d4d42dc
add r# to str
SwayStar123 Nov 18, 2024
295bcb4
remove original str impl
SwayStar123 Nov 18, 2024
39cb0ed
import AbiEncode where necessary
SwayStar123 Nov 18, 2024
e4d696c
add missing ;
SwayStar123 Nov 18, 2024
2cad4ba
remove log in import for flags.sw
SwayStar123 Nov 18, 2024
06b2172
remove assert and error from flags import
SwayStar123 Nov 18, 2024
f5b1f1e
move out tests from ops lib
SwayStar123 Nov 18, 2024
140e97c
remove primitive conversions dependency from codec
SwayStar123 Nov 18, 2024
928d527
fix typo
SwayStar123 Nov 18, 2024
7940ce2
fmt
SwayStar123 Nov 18, 2024
e809184
progress
SwayStar123 Jan 7, 2025
30f1c93
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Jan 23, 2025
f62e3f1
remove todo stuff
SwayStar123 Jan 23, 2025
1bd6641
rid of all but 1 error
SwayStar123 Jan 27, 2025
4662ec9
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Jan 27, 2025
06ad163
fmt
SwayStar123 Jan 27, 2025
05d7a2e
fix new errors
SwayStar123 Jan 27, 2025
9bb1d3e
fix all bugs
SwayStar123 Jan 27, 2025
e16357d
move storagekey
SwayStar123 Jan 29, 2025
e47e22a
move generate.sh
SwayStar123 Jan 29, 2025
28642b1
remove some references of core from compiler
SwayStar123 Feb 3, 2025
f45478d
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Feb 3, 2025
3e17625
delete core lib, fix autoimpl
SwayStar123 Feb 10, 2025
193aa13
remove core from std lib forc.toml
SwayStar123 Feb 12, 2025
eb69f75
remove core from forctoml
SwayStar123 Feb 24, 2025
d28052c
fix imports
SwayStar123 Feb 26, 2025
68cde33
all inline tests pass
SwayStar123 Feb 26, 2025
934d5fa
Merge remote-tracking branch 'origin/master' into swaystar123/merge-c…
SwayStar123 Feb 26, 2025
c5188bd
merge master
SwayStar123 Feb 26, 2025
53822ef
fix crypto stuff
SwayStar123 Feb 26, 2025
b58b9cd
fix examples
SwayStar123 Feb 26, 2025
9f089a7
remove core from sdk harness
SwayStar123 Feb 26, 2025
27e5a10
fmt
SwayStar123 Feb 26, 2025
223f05d
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Feb 27, 2025
95924cc
tomls
SwayStar123 Feb 27, 2025
ab5f6df
fix docs exs
SwayStar123 Feb 27, 2025
32193ba
add sway-lib-std-core reduced std lib to tests
SwayStar123 Mar 3, 2025
2217ea0
fix more e2e tests. import codec in b512 remove some mentions of core…
SwayStar123 Mar 3, 2025
2b9b458
remove core from ci and tomls and test ir generation
SwayStar123 Mar 3, 2025
b5fd1ea
e2e tests should all pass now
SwayStar123 Mar 3, 2025
f631832
remove all references to core i could find
SwayStar123 Mar 4, 2025
298feca
Merge remote-tracking branch 'origin/master' into swaystar123/merge-c…
SwayStar123 Mar 5, 2025
a14403e
fix ops
SwayStar123 Mar 5, 2025
a6220d6
add deserialization to spellings
SwayStar123 Mar 5, 2025
6349467
fix some tests
SwayStar123 Mar 5, 2025
974c735
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Mar 5, 2025
d6a32a1
fix lock files
SwayStar123 Mar 6, 2025
d20a9fd
fix e2e lock
SwayStar123 Mar 6, 2025
fb4ee00
fix lsp test
SwayStar123 Mar 6, 2025
a6185cb
fix forc doc tests
SwayStar123 Mar 6, 2025
e8d3e98
fix forc client test
SwayStar123 Mar 6, 2025
4daba81
Merge branch 'swaystar123/merge-core-std' of https://github.com/FuelL…
SwayStar123 Mar 6, 2025
cfd1d39
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Mar 6, 2025
b7a4f6e
fmt
SwayStar123 Mar 6, 2025
1599b86
fix lsp and e2e tests
SwayStar123 Mar 6, 2025
6369fc3
fix more lsp and pkg tests
SwayStar123 Mar 6, 2025
bea9de4
fix tomls
SwayStar123 Mar 6, 2025
0f98f1f
fix some lock files e2e tests
SwayStar123 Mar 6, 2025
78f0f86
fix changed contractids
SwayStar123 Mar 6, 2025
63fb9b1
fix 2 more e2e tomls
SwayStar123 Mar 6, 2025
0028f00
fix lsp tests
SwayStar123 Mar 7, 2025
d39d518
fix lock file caller_auth_test
SwayStar123 Mar 7, 2025
f9335fe
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Mar 7, 2025
d8a79ef
code_action_struct_existing_impl and const_generics tests fix
SwayStar123 Mar 7, 2025
a31016a
fix configurable_dedup_decode snap
SwayStar123 Mar 7, 2025
eba7919
fix more tomls
SwayStar123 Mar 7, 2025
0254809
use main std for workspace test contract
SwayStar123 Mar 7, 2025
baa303c
fix some lock files
SwayStar123 Mar 7, 2025
1dcc7e8
change trasmute to use main std
SwayStar123 Mar 7, 2025
c43c77a
fix snap file
SwayStar123 Mar 7, 2025
a4b781a
remove use of unnecessary full std in e2e
SwayStar123 Mar 7, 2025
6861018
go back to main std for forc workspace test
SwayStar123 Mar 7, 2025
1184003
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Mar 7, 2025
7bd7fc7
Merge branch 'swaystar123/merge-core-std' of https://github.com/FuelL…
SwayStar123 Mar 7, 2025
e1ce81e
update code_action_struct_existing_impl expect
sdankel Mar 7, 2025
ce692c4
add 2 spaces
SwayStar123 Mar 7, 2025
48dd808
Merge branch 'swaystar123/merge-core-std' of https://github.com/FuelL…
SwayStar123 Mar 7, 2025
cfb37da
comment out 3 more lsp tests
SwayStar123 Mar 10, 2025
2c8b907
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Mar 10, 2025
b67e08d
rename to placeholder.toml
SwayStar123 Mar 10, 2025
cba493e
rename forc.toml aswell
SwayStar123 Mar 10, 2025
a088d3f
Merge branch 'master' into swaystar123/merge-core-std
SwayStar123 Mar 10, 2025
10b0966
fix tests introduced when merging master
SwayStar123 Mar 10, 2025
a68f8c8
fix start and end char
SwayStar123 Mar 10, 2025
cbcbfd4
fix lsp def line
SwayStar123 Mar 10, 2025
f48e605
comment out lsp test
SwayStar123 Mar 10, 2025
c003eb3
comment out cache test
SwayStar123 Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

# Sway files and standard library
/examples/ @FuelLabs/sway-compiler @FuelLabs/swayex
/sway-lib-core/ @FuelLabs/sway-compiler @FuelLabs/swayex
/sway-lib-std/ @FuelLabs/sway-compiler @FuelLabs/swayex

# Tooling
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ env:
jobs:
verifications-complete:
needs:
- build-sway-lib-core
- build-sway-lib-std
- build-sway-examples
- build-reference-examples
- forc-fmt-check-sway-lib-core
- forc-fmt-check-sway-lib-std
- forc-fmt-check-sway-examples
- forc-fmt-check-panic
Expand Down Expand Up @@ -76,22 +74,6 @@ jobs:
version=$(toml get Cargo.toml workspace.dependencies.fuel-core-client.version | tr -d '"')
echo "version=$version" >> "$GITHUB_OUTPUT"

build-sway-lib-core:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: Swatinem/rust-cache@v2
with:
cache-provider: "buildjet"
- name: Install Forc
run: cargo install --locked --debug --path ./forc
- name: Build sway-lib-core
run: forc build --path sway-lib-core

build-sway-lib-std:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
Expand Down Expand Up @@ -136,20 +118,6 @@ jobs:
- name: Build Sway examples workspace
run: cargo run --locked -p forc -- build --locked --path ./docs/reference/src/code/Forc.toml

forc-fmt-check-sway-lib-core:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: Swatinem/rust-cache@v2
with:
cache-provider: "buildjet"
- name: Check Sway sway-lib-core formatting
run: cargo run --locked -p forc-fmt -- --check --path ./sway-lib-core

forc-fmt-check-sway-lib-std:
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
Expand Down Expand Up @@ -551,16 +519,6 @@ jobs:
cache-provider: "buildjet"
- name: Install Forc
run: cargo install --locked --debug --path ./forc
- name: Run Core Unit Tests
run: forc build --path sway-lib-core && forc test --path sway-lib-core
- name: Run Core Unit Tests - Experimental feature 'storage_domains'
run: forc build --experimental storage_domains --path sway-lib-core && forc test --experimental storage_domains --path sway-lib-core
- name: Run Core Unit Tests - Experimental feature 'error_type'
run: forc build --experimental error_type --path sway-lib-core && forc test --experimental error_type --path sway-lib-core
- name: Run Core Unit Tests - Experimental feature 'partial_eq'
run: forc build --experimental partial_eq --path sway-lib-core && forc test --experimental partial_eq --path sway-lib-core
- name: Run Core Unit Tests - Experimental feature 'try_from_bytes_for_b256'
run: forc build --experimental try_from_bytes_for_b256 --path sway-lib-core && forc test --experimental try_from_bytes_for_b256 --path sway-lib-core
- name: Run Std Unit Tests
run: forc build --path sway-lib-std && forc test --path sway-lib-std
- name: Run Std Unit Tests - Experimental feature 'storage_domains'
Expand Down Expand Up @@ -742,7 +700,6 @@ jobs:
[
build-forc-test-project,
build-sway-examples,
build-sway-lib-core,
build-sway-lib-std,
cargo-build-workspace,
cargo-clippy,
Expand Down Expand Up @@ -807,7 +764,6 @@ jobs:
[
build-forc-test-project,
build-sway-examples,
build-sway-lib-core,
build-sway-lib-std,
cargo-build-workspace,
cargo-clippy,
Expand Down Expand Up @@ -856,7 +812,6 @@ jobs:
[
build-forc-test-project,
build-sway-examples,
build-sway-lib-core,
build-sway-lib-std,
cargo-build-workspace,
cargo-clippy,
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ target
# These are backup files generated by rustfmt
**/*.rs.bk

# `core` and `std` are libs, no need to commit their lock files.
sway-lib-core/Forc.lock
# `std` is a lib, no need to commit its lock file.
sway-lib-std/Forc.lock

# Forc's build directory
Expand Down
2 changes: 0 additions & 2 deletions ci_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ cargo install --locked --debug --path ./forc-plugins/forc-client &&
cargo install --locked --debug --path ./forc-plugins/forc-tx &&
cargo install --locked --debug forc-explore &&
cargo install --locked --debug --path ./scripts/mdbook-forc-documenter &&
forc build --path sway-lib-core &&
forc test --path sway-lib-core &&
forc build --path sway-lib-std &&
forc test --path sway-lib-std &&
cargo run --locked -p forc -- build --locked --path ./examples/Forc.toml &&
Expand Down
1 change: 1 addition & 0 deletions docs/book/spell-check-custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ BrowserStack
CLI
Deserialization
deserializing
deserialization
DApp
intrinsics
Intrinsics
Expand Down
1 change: 0 additions & 1 deletion docs/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- [The Fuel Toolchain](./introduction/fuel_toolchain.md)
- [A Forc Project](./introduction/forc_project.md)
- [Standard Library](./introduction/standard_library.md)
- [Core Library](./introduction/core_library.md)
- [Sway Language Standards](./introduction/sway_standards.md)
- [Examples](./examples/index.md)
- [Counter](./examples/counter.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/book/src/advanced/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The above snippet declares all of the methods in the trait `Compare` for the typ
## Supertraits

When using multiple traits, scenarios often come up where one trait may require functionality from another trait. This is where supertraits come in as they allow you to require a trait when implementing another trait, i.e., a trait with a trait.
A good example of this is the `Ord` trait of the `core` library of Sway. The `Ord` trait requires the `Eq` trait, so `Eq` is kept as a separate trait as one may decide to implement `Eq`
A good example of this is the `Ord` trait of the `std` library of Sway. The `Ord` trait requires the `Eq` trait, so `Eq` is kept as a separate trait as one may decide to implement `Eq`
without implementing other parts of the `Ord` trait.

```sway
Expand Down Expand Up @@ -169,7 +169,7 @@ fn panic_with_error<E>(err: E) where E: Error {

> **Note** `panic` expression and error types [have not yet been implemented](https://github.com/FuelLabs/sway/issues/6765)

All marker traits are defined in the `core::marker` module.
All marker traits are defined in the `std::marker` module.

## Use Cases

Expand Down
2 changes: 1 addition & 1 deletion docs/book/src/forc/manifest_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ In the example above, `std` is patched with the `test` branch from `std` repo. Y
std = { path = "/path/to/local_std_version" }
```

Just like `std` or `core` you can also patch dependencies you declared with a git repo.
Just like `std` you can also patch dependencies you declared with a git repo.

```toml
[project]
Expand Down
30 changes: 0 additions & 30 deletions docs/book/src/introduction/core_library.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/book/src/introduction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ To get started with Forc and Sway smart contract development, install the Fuel t
- [The Fuel Toolchain](./fuel_toolchain.md)
- [A Forc Project](./forc_project.md)
- [Standard Library](./standard_library.md)
- [Core Library](./core_library.md)
- [Sway Language Standards](./sway_standards.md)
9 changes: 8 additions & 1 deletion docs/book/src/introduction/standard_library.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The current version of the prelude lives in [`std::prelude`](https://github.com/
- [`std::contract_id::ContractId`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/contract_id.sw), a wrapper around the `b256` type representing the ID of a contract.
- [`std::identity::Identity`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/identity.sw), an enum with two possible variants: `Address: Address` and `ContractId: ContractId`.
- [`std::vec::Vec`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/vec.sw), a growable, heap-allocated vector.
- [`std::storage::storage_key::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/storage/storage_key.sw), contains the API for accessing a `core::storage::StorageKey` which describes a location in storage.
- [`std::storage::storage_key::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/storage/storage_key.sw), contains the API for accessing a `std::storage::StorageKey` which describes a location in storage.
- [`std::storage::storage_map::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/storage/storage_map.sw), a key-value mapping in contract storage.
- [`std::option::Option`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/option.sw), an enum which expresses the presence or absence of a value.
- [`std::result::Result`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/result.sw), an enum for functions that may succeed or fail.
Expand All @@ -46,4 +46,11 @@ The current version of the prelude lives in [`std::prelude`](https://github.com/
- [`std::revert::revert`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/revert.sw), a function that reverts the VM.
- [`std::logging::log`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/logging.sw), a function that logs arbitrary stack types.
- [`std::auth::msg_sender`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/auth.sw), a function that gets the `Identity` from which a call was made.
- [`std::primitives::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/primitives.sw), methods on primitive types.
- [`std::primitive_conversions::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/primitive_conversions.sw), methods for converting between primitive types.
- [`std::raw_ptr::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/raw_ptr.sw), functions for working with raw pointers.
- [`std::raw_slice::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/raw_slice.sw), functions for working with raw slices.
- [`std::ops::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/ops.sw), mathematical operations such as addition, subtraction, multiplication, and division.
- [`std::str::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/str.sw), methods for working with strings.
- [`std::codec::*`](https://github.com/FuelLabs/sway/blob/master/sway-lib-std/src/codec.sw), automatic serialization and deserialization of types.
<!-- prelude:example:end -->
2 changes: 0 additions & 2 deletions docs/book/src/testing/testing-with-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ ABI, storage and bytecode artifacts are available. We can do so with `forc build
```console
$ forc build
Creating a new `Forc.lock` file. (Cause: lock file did not exist)
Adding core
Adding std git+https://github.com/fuellabs/sway?tag=v0.24.5#e695606d8884a18664f6231681333a784e623bc9
Created new lock file at /home/user/path/to/my-fuel-project/Forc.lock
Compiled library "core".
Compiled library "std".
Compiled contract "my-fuel-project".
Bytecode size is 60 bytes.
Expand Down
1 change: 0 additions & 1 deletion docs/book/src/testing/unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ forc test
The output should look similar to this:

```console
Compiled library "core".
Compiled library "std".
Compiled library "lib_single_test".
Bytecode size is 92 bytes.
Expand Down
15 changes: 2 additions & 13 deletions docs/reference/src/code/Forc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ name = "control_flow"
source = "member"
dependencies = ["std"]

[[package]]
name = "core"
source = "path+from-root-0F28276288D2432C"

[[package]]
name = "counter"
source = "member"
Expand Down Expand Up @@ -127,10 +123,7 @@ dependencies = ["std"]
[[package]]
name = "intermediate_variables"
source = "member"
dependencies = [
"core",
"std",
]
dependencies = ["std"]

[[package]]
name = "letter_casing"
Expand Down Expand Up @@ -163,10 +156,7 @@ dependencies = ["std"]
[[package]]
name = "namespace"
source = "member"
dependencies = [
"core",
"std",
]
dependencies = ["std"]

[[package]]
name = "numerics"
Expand Down Expand Up @@ -201,7 +191,6 @@ dependencies = ["std"]
[[package]]
name = "std"
source = "path+from-root-0F28276288D2432C"
dependencies = ["core"]

[[package]]
name = "storage_init"
Expand Down
2 changes: 0 additions & 2 deletions docs/reference/src/code/language/control_flow/src/lib.sw
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ fn nested_match(input: TopLevel) -> u64 {
// ANCHOR_END: nested_enum_match

// ANCHOR: complex_multi_arg_enum_match
use core::ops::Eq;

enum Binary {
True: (),
False: (),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ license = "Apache-2.0"
name = "intermediate_variables"

[dependencies]
core = { path = "../../../../../../../sway-lib-core" }
std = { path = "../../../../../../../sway-lib-std" }
1 change: 0 additions & 1 deletion docs/reference/src/code/operations/namespace/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ license = "Apache-2.0"
name = "namespace"

[dependencies]
core = { path = "../../../../../../sway-lib-core" }
std = { path = "../../../../../../sway-lib-std" }
8 changes: 4 additions & 4 deletions docs/slides/encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract.some_method(0);
Compiler will desugar this into

```rust
core::codec::contract_call(
std::codec::contract_call(
CONTRACT_ID,
"some_method",
(0,),
Expand Down Expand Up @@ -108,9 +108,9 @@ Compiler will desugar this into:

```rust
pub fn __entry() {
let method_name = core::codec::decode_first_param::<str>();
let method_name = std::codec::decode_first_param::<str>();
if method_name == "some_method" {
let mut buffer = core::codec::BufferReader::from_second_parameter();
let mut buffer = std::codec::BufferReader::from_second_parameter();
let args: (u64,) = buffer.decode::<(u64,)>();
let result: () = __contract_entry_some_method(args.0);
let result: raw_slice = encode::<()>(result);
Expand Down Expand Up @@ -398,7 +398,7 @@ will be desugared into something like
const SOMETHING: u64;

fn __entry() -> raw_slice {
core::codec::abi_decode_in_place(&mut SOMETHING, 7104, 8);
std::codec::abi_decode_in_place(&mut SOMETHING, 7104, 8);
encode(main())
}

Expand Down
Loading
Loading