Skip to content

Commit

Permalink
abi workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
dj8yf0μl committed Feb 13, 2025
1 parent 1eac0bb commit 87ea9ad
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ cargo near build

Builds a NEAR smart contract along with its [ABI](https://github.com/near/abi) (while in the directory containing contract's Cargo.toml).

If you have problems/errors with schema/ABI during build that you cannot figure out quick, you can skip/circumvent them with:

```sh
cargo near build non-reproducible-wasm --no-abi
```

And return to figuring how to resolve problems with generating ABI of your contract later.

```sh
cargo near create-dev-account
```
Expand Down
14 changes: 12 additions & 2 deletions near-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,27 @@
//!
//! ### Compiling to WASM
//!
//! Install cargo near in case if you don't have it:
//! Install `cargo-near` in case if you don't have it:
//! ```bash
//! cargo install --locked cargo-near
//! ```
//!
//! Build your contract for the NEAR blockchain:
//! More installation methods on [cargo-near](https://github.com/near/cargo-near)
//!
//! Builds a NEAR smart contract along with its [ABI](https://github.com/near/abi) (while in the directory containing contract's Cargo.toml):
//!
//! ```bash
//! cargo near build
//! ```
//!
//! If you have problems/errors with schema/ABI during build that you cannot figure out quick, you can skip/circumvent them with:
//!
//! ```bash
//! cargo near build non-reproducible-wasm --no-abi
//! ```
//!
//! And return to figuring how to resolve problems with generating ABI of your contract later.
//!
//! ### Running Unit Tests
//!
//! Use the following testing setup:
Expand Down

0 comments on commit 87ea9ad

Please sign in to comment.