Skip to content

Commit 87ea9ad

Browse files
author
dj8yf0μl
committed
abi workaround
1 parent 1eac0bb commit 87ea9ad

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,14 @@ cargo near build
281281

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

284+
If you have problems/errors with schema/ABI during build that you cannot figure out quick, you can skip/circumvent them with:
285+
286+
```sh
287+
cargo near build non-reproducible-wasm --no-abi
288+
```
289+
290+
And return to figuring how to resolve problems with generating ABI of your contract later.
291+
284292
```sh
285293
cargo near create-dev-account
286294
```

near-sdk/src/lib.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,27 @@
5454
//!
5555
//! ### Compiling to WASM
5656
//!
57-
//! Install cargo near in case if you don't have it:
57+
//! Install `cargo-near` in case if you don't have it:
5858
//! ```bash
5959
//! cargo install --locked cargo-near
6060
//! ```
6161
//!
62-
//! Build your contract for the NEAR blockchain:
62+
//! More installation methods on [cargo-near](https://github.com/near/cargo-near)
63+
//!
64+
//! Builds a NEAR smart contract along with its [ABI](https://github.com/near/abi) (while in the directory containing contract's Cargo.toml):
6365
//!
6466
//! ```bash
6567
//! cargo near build
6668
//! ```
6769
//!
70+
//! If you have problems/errors with schema/ABI during build that you cannot figure out quick, you can skip/circumvent them with:
71+
//!
72+
//! ```bash
73+
//! cargo near build non-reproducible-wasm --no-abi
74+
//! ```
75+
//!
76+
//! And return to figuring how to resolve problems with generating ABI of your contract later.
77+
//!
6878
//! ### Running Unit Tests
6979
//!
7080
//! Use the following testing setup:

0 commit comments

Comments
 (0)