CRYPTO NEWS

Deploy contract didnt resolve the promise

im facing a problem deploying a simple smart contract.

When i use ganacha-cli, the program enter in a loop of confimation event, counting from 1. Thats the first problem.

Output:

Account: 0xd5f75a4F58da4dF050F84dedF07d24f7bf388F8F trans hash: 0x1ab65a58debce4859a7df358ba54653fe0727b25f9d483622ab412ea7c49a56d receipt: [object Object] Contract address: 0xd2039ADAE2a61fADd65C4bec6a7791b2B6e56d08 confirmation: 1 confirmation: 2 confirmation: 3 confirmation: 4 confirmation: 5 ... 

And when i use a blockchain runing with geth in a server, the send method never is resolved. Only transaction hash is fired, and the contract is created in the blockchain. The second and main problem.

Output:

Account: 0xb5cF1ee3481B45d1A1cB939921f3f6E3f0C97f80 trans hash: 0x387a881262fbfee430bf761724bb5e21706fc2c76bb86dfd69aff526c46b985f 

Code (web3 version 1.2):

var Web3 = require('web3');  var web3 = new Web3(new Web3.providers.HttpProvider('http://XXX.XXX.XXX.XXX:PPPP'));  var account = '0xb5cF1ee3481B45d1A1cB939921f3f6E3f0C97f80'  console.log('Account: ' + account);  web3.eth.personal.unlockAccount(account, "dos", 50000)  const deployedContract = new web3.eth.Contract([{"constant":true,"inputs":[],"name":"displayMessage","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"displayMessagex","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}]);  deployedContract.deploy({     data: '0x6060604052341561000f57600080fd5b6101ad8061001e6000396000f30060606040526004361061004b5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632d59dc128114610050578063910dc524146100da575b600080fd5b341561005b57600080fd5b6100636100ed565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561009f578082015183820152602001610087565b50505050905090810190601f1680156100cc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156100e557600080fd5b61006361012e565b6100f561016f565b60408051908101604052601281527f5768616c652068656c6c6f2074686572652100000000000000000000000000006020820152905090565b61013661016f565b60408051908101604052601781527f5768616c652068656c6c6f2074686572655858585858210000000000000000006020820152905090565b602060405190810160405260008152905600a165627a7a723058208eeb846120df236de217b296df57febcc6f992caf709d5cb6d4637c86b9427a40029' }).send({     from: account,     gas: 10000000 }) .once('confirmation', function(confirmationNumber, receipt){     console.log('confirmation: ' + confirmationNumber) }) .on('transactionHash', function(hash){     console.log('trans hash: ' + hash) }) .on('error', function(error){     console.log('error: ' + error) }) .on('receipt', function(receipt){     console.log('receipt: ' + receipt.toString()) }) .then(function(contract) {     console.log('Contract address: ' + contract.options.address); }) .catch(function(error) {     console.log(error); }) 

Geth command:

geth --port 3000 --networkid 87936 --nodiscover --datadir=. --maxpeers=0  --rpc --rpcport 8543 --rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcapi "eth,net,web3,personal,miner" --allow-insecure-unlock 

Thanks!

After start mining the main problem convert in the first problem (is an advance), changed the on(‘confirmation’) to once(‘confirmation’) the output now is:

Account: 0xb5cF1ee3481B45d1A1cB939921f3f6E3f0C97f80 trans hash: 0xc5a2dc489815c205a53658bf5ebcde95593e83da4ead07355fcae4d722636c12 confirmation: 0 receipt: [object Object] Contract address: 0x6b4A76Ab26e487Fdc502779Abc438d0cF59299bc 

NFT games on brink of overtaking PC games in popularity

Key Takeaways Within about a year, NFT games are now on the brink of overtaking PC games in popularity Compared to conventional PC games, only 10 games are more popular than top NFT editions $2.5 billion raised by blockchain games in Q1 of 2022, on course for $10 billion this year compared to $4 billion::Listen

Key Takeaways

  • Within about a year, NFT games are now on the brink of overtaking PC games in popularity

  • Compared to conventional PC games, only 10 games are more popular than top NFT editions

  • $2.5 billion raised by blockchain games in Q1 of 2022, on course for $10 billion this year compared to $4 billion for 2021

  • While prices of gaming tokens have been in freefall alongside wider market, user growth and investment has been stout

With NFTs crumbling as the market continues in full risk-off mode, I decided to dive into the statistics behind a sector I believe is one of the most intriguing use cases for this novel technology. 

Sure, lots of NFTs are overpriced and can be attributed to bear market hysteria, but I have always felt that the marriage between gaming and NFTs is a natural one. Players pour so much time into playing certain games, as well as money into in-game additions, that defining ownership and maintaining a historical record on-chain seems to make sense. 

So what do the numbers say about NFT gaming adoption compared to conventional gaming, and do they paint a more bullish picture than the freefalling token prices? 

One year growth

In terms of active users, the growth in the last year has been meteoric for NFT games. A report from DappRadar calculated the growth in blockchain gaming as 2000% since Q1 of last year. 

Also in Q1 of this year, $2.5 billion was raised for blockchain games and other metaverse projects. While this came before the ugly downturn of recent months, it’s still promising given $4 billion was raised in all of 2021, a period when the bull market was in full swing. That puts gaming and metaverse projects on course to raise $10 billion through 2022. So, even a hugely conservative 60% cut to funding would place it above 2021 levels. 

NFT gaming users

The funding is stout, but so too are the users. A look at the below graph showing the top 10 NFT games confirms that the sector is starting to gain mainstream appeal and capture more and more unique users per month.

To put the above numbers in context, a neat current benchmark for NFT games is that of PC games. The below graph shows the top 10 most played PC games on the Steam platform. While the data for total users in a month is more challenging to obtain, the below graph presents the average number of concurrent players over the last 30 days (rather than total unique users per month as per the above graph). 

Assuming that 5% of active players are online at any given time, the below graph then compares how NFT games stack up to the most popular PC games, with NFT games in blue and conventional PC games in orange. 

This shows that while NFT games are yet to overtake PC games, it is extremely close to occurring. Only the top 10 PC games are capturing more users than the top NFT game, Alien Worlds, and the margin is very narrow, with Alien Worlds only about 1,000 users off. 

Yet despite the bullish growth in numbers, these games are being brandished as fads due to the overall pullback in crypto markets. Additionally,  the below graph for two of the biggest tokens – Alien Worlds and Axie Infinity – show that the freefall has been stark after explosive run-ups last year. 

But in looking past the prices of such tokens (a large part of which would have been due to speculation) and instead digging into user growth and the investment being put into these platforms, the future still appears bright. 

It’s a reminder that despite the bearish sentiment in the markets, there is very real technology here that is making a difference and disrupting industries. To be on the brink of the top 10 PC games already is quite the achievement, given the nascent nature of the space. 

As for whether these tokens are good investments at current prices? Well, that’s an issue for another day. 

Sources

https://dappradar.com/blog/dappradar-x-bga-games-report-q1-2022

https://www.statista.com/statistics/1266486/blockchain-games-user-number/

The post NFT games on brink of overtaking PC games in popularity appeared first on CoinJournal.

Deploy contract didnt resolve the promise

Shopping cart
There are no products in the cart!
Continue shopping
0