From ccac72fece3a460bd45f87f31216442040257183 Mon Sep 17 00:00:00 2001 From: Jaco Date: Tue, 26 Apr 2022 19:27:48 +0200 Subject: [PATCH] Remove outdated contract docs (#4774) --- packages/api-contract/README.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/api-contract/README.md b/packages/api-contract/README.md index 6cbe732d06..f50beb5f30 100644 --- a/packages/api-contract/README.md +++ b/packages/api-contract/README.md @@ -1,16 +1,3 @@ # @polkadot/api-contract Interfaces to allow for the encoding and decoding of Substrate contract ABIs. - -```js -import {ApiPromise, WsProvider } from '@polkadot/api'; -import { Abi } from '@polkadot/api-contract'; - -const wsProvider = new WsProvider(<...Node Url...>); -const api = await ApiPromise.create({ provider: wsProvider }); -const abi = new Abi(<...JSON ABI...>, api.registry.getChainProperties()); - -api.tx.contracts - .call(, , , abi.messages.(<...params...>)) - .signAndSend(, (result: SubmittableResult) => { ... }); -```