Skip to content

Commit

Permalink
Merge pull request #39 from PortalNetwork/develop
Browse files Browse the repository at this point in the history
v0.1.4
  • Loading branch information
PhyrexTsai authored Oct 21, 2018
2 parents d72e921 + 84cf070 commit d7a804b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/SearchBar/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class SearchBar extends Component {

const resolver = await getResolver(this.state.searchValue, this.props.web3);
const owner = await getOwner(this.state.searchValue, this.props.web3);
const entries = await getEntries(seachdamain);
const entries = await getEntries(seachdamain, this.props.web3);

let ipfsHash = "";
this.setState({resolver, owner, entries});
Expand Down
4 changes: 2 additions & 2 deletions src/lib/registrarService.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export const mode = ["Open", "Auction", "Owned", "Forbidden", "Reveal", "NotYetA
* @param {*} name
* @returns {array} tuple
*/
export const getEntries = async (name) => {
export const getEntries = async (name, web3Provider) => {
try {
setWeb3Provider();
let registrar = new Registrar(web3Provider, getEthereumRegistrarAddress(process.env.WNS_NETWORK));
const result = await registrar.entries(web3.sha3(name));
return {
state: mode[result[0].toString()],
Expand Down

0 comments on commit d7a804b

Please sign in to comment.