Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.contract.methods.getPlayerAnimals(this.address)
- .call({ from: this.address })
- .then((animals) => {
- for (var animal of animals) {
- this.contract.methods.getAnimal(animal)
- .call({ from: this.address })
- .then((animalContract) => {
- this.playerAnimals.push(fullAnimal)
- });
- }
- this.socket.emit('playerAnimals', this.playerAnimals)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement