diff --git a/README.md b/README.md index 4a85a31ce..8374c73f6 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ const rpc = new eosjs.Rpc.JsonRpc('http://127.0.0.1:8000', { fetch }); Include textDecoder and textEncoder when using in browser. ```js -const api = new eosjs.Api({ rpc, signatureProvider, textDecoder: new TextDecoder, textEncoder: new TextEncoder }); +const api = new eosjs.Api({ rpc, signatureProvider, textDecoder: new TextDecoder(), textEncoder: new TextEncoder() }); ``` ### Sending a transaction @@ -107,4 +107,4 @@ After running `npm run build-web` or `yarn build-web`, the browser distribution 1. `npm run build-web` or `yarn build-web` 1. Open `test.html` in your browser of choice -*The integration tests assume that you have a local node for EOS set up at localhost:8000. The test.html file should run through 5 test cases with the final showing an exception on the screen for missing required TAPOS.* \ No newline at end of file +*The integration tests assume that you have a local node for EOS set up at localhost:8000. The test.html file should run through 5 test cases with the final showing an exception on the screen for missing required TAPOS.*