notif('Updated user information in this server\'s database', 'success');
notif('Updated user information in this server\'s database.', 'success');
notif('Publish to AVAX to make the data more available', 'info');
notif('Publish to the Avalanche blockchain to make the data globally available.', 'info');
} else {
} else {
notif(data['message'], 'error');
notif(data['message'], 'error');
}
}
@ -137,7 +120,7 @@
return gas;
return gas;
});
});
try {
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({
let res = await contract.methods.setUserHandle(handle).send({
from: walletAddress,
from: walletAddress,
value: 0,
value: 0,
@ -162,7 +145,7 @@
return gas;
return gas;
});
});
try {
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({
let res = await contract.methods.setUserWowneroAddress(address).send({
from: walletAddress,
from: walletAddress,
value: 0,
value: 0,
@ -187,7 +170,7 @@
return gas;
return gas;
});
});
try {
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({
let res = await contract.methods.setUserMetadata(_hash).send({