notif('Updated user information in this server\'s database', 'success');
notif('Publish to AVAX to make the data more available', 'info');
notif('Updated user information in this server\'s database.', 'success');
notif('Publish to the Avalanche blockchain to make the data globally available.', 'info');
} else {
notif(data['message'], 'error');
}
@ -137,7 +120,7 @@
return gas;
});
try {
notif(`Publishing user handle "${handle}" to the Avalanche blockchain.`, 'info');
notif(`Publishing user handle "${handle}" to the Avalanche blockchain for address ${walletAddress.slice(0, 6)}...${walletAddress.slice(-6)}.`, 'info');
let res = await contract.methods.setUserHandle(handle).send({
from: walletAddress,
value: 0,
@ -162,7 +145,7 @@
return gas;
});
try {
notif(`Publishing Wownero address "${address.slice(0, 6)}...${address.slice(-6)}" to the Avalanche blockchain.`, 'info');
notif(`Publishing Wownero address "${address.slice(0, 6)}...${address.slice(-6)}" to the Avalanche blockchain for address ${walletAddress.slice(0, 6)}...${walletAddress.slice(-6)}.`, 'info');
let res = await contract.methods.setUserWowneroAddress(address).send({
from: walletAddress,
value: 0,
@ -187,7 +170,7 @@
return gas;
});
try {
notif(`Publishing user profile metadata IPFS hash ${_hash} to the Avalanche network.`, 'info');
notif(`Publishing user profile metadata IPFS hash ${_hash} to the Avalanche blockchain for address ${walletAddress.slice(0, 6)}...${walletAddress.slice(-6)}.`, 'info');
let res = await contract.methods.setUserMetadata(_hash).send({