diff --git a/README.md b/README.md index ace072d..7f6522f 100644 --- a/README.md +++ b/README.md @@ -411,18 +411,6 @@ leveraging the reactivity and simplicity of Svelte along with the powerful features of web3.js, you can create a seamless and efficient user experience for your decentralized applications. -## Create contract stores (deprecated) - -The function `makeContractStore` allowed you to create a Svelte derived -store of a `web3.eth.Contract` object instance. It takes the same -parameters as a ̀new web3.eth.Contract` call: - -```js -makeContractStore(jsonInterface[, address][, options]) -``` - -This function will be removed in the next major release of `svelte-web3`. -Please update your code to use the new $contracts store. ## Simultaneous multi chain usage diff --git a/src/stores.js b/src/stores.js index 35ce513..1e0f0ad 100644 --- a/src/stores.js +++ b/src/stores.js @@ -333,11 +333,6 @@ export const contracts = allStores.default.contracts // TODO spin off dectector export const walletType = allStores.default.walletType -// TODO legacy makeContractStore to be removed -export const makeContractStore = (abi, address, defaults = {}) => - console.warn( - '[svelte-web3] makeContractStore is deprecated. Please use the new $contracts store' - ) derived([web3, connected], ([$web3, $connected]) => { if ($connected && $web3.eth) { return new $web3.eth.Contract(abi, address, defaults)