Skip to content

Commit

Permalink
Update Web3Helpers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DaasDaham committed Dec 14, 2021
1 parent 70adc60 commit eabf134
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Web3Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ async function registerLandHelper(dlarsObj, accounts, formDetails) {
formDetails.pinCode,
formDetails.payableCurrentOwner
)
.call(function (result) {
.call({ from: accounts[0] })
.then(function (result) {
landId = result;
});
await dlarsObj.methods
Expand All @@ -31,7 +32,7 @@ async function registerLandHelper(dlarsObj, accounts, formDetails) {
console.log(result);
});
console.log("After Blockchain");
console.log(landRegistryStatus);
console.log(landId);
return landId;
}

Expand Down

0 comments on commit eabf134

Please sign in to comment.