Skip to content

Commit

Permalink
testnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
wpdas committed Apr 17, 2023
1 parent 1799f06 commit 0907fc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ const getAccountIdHandler = (request, response) => {
}

// NearSocialBridgeCore widget is the core that makes all the "magic" happens
// use `wendersonpires.testnet/widget/NearSocialBridgeCore` as source if you want to use "testnet" environment
return (
<Widget
src={'wendersonpires.near/widget/NearSocialBridgeCore'}
Expand All @@ -593,6 +594,8 @@ return (
)
```

**testnet:** Use `wendersonpires.testnet/widget/NearSocialBridgeCore` while creating your application using the testnet environment.

And that's basically it. Again, remember that once your application is running inside the Widget, if it is making requests, you must handle each one of them inside the Widget, otherwise the unhandled requests will fail.

## Good to know
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-social-bridge",
"version": "1.3.0",
"version": "1.3.1",
"description": "This library allows you to create a common application using ReactJS and inject it in a controlled way into a Widget on Near Social. Therefore, the Widget talks to the React application and vice versa, making it possible to consume Discovery API resources within the React application.",
"main": "./dist/cjs/index.js",
"module": "./index.js",
Expand Down
1 change: 1 addition & 0 deletions widget-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const getAccountIdHandler = (request, response) => {
response(request).send({ accountId })
}

// use `wendersonpires.testnet/widget/NearSocialBridgeCore` as source if you want to use "testnet" environment
return (
<Widget
src={'wendersonpires.near/widget/NearSocialBridgeCore'}
Expand Down

0 comments on commit 0907fc2

Please sign in to comment.