You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a dev tries to validate a wallet address they are running into issues because the web3.Signer.GetAddress() function returns an address in all lower case. So when they check if the wallets match, it returns false even though the addresses are the same. The following script resolves the issue and needs to be added to the docs.
// Put this at the top of your script, it's a using directive to give you access to the helper method.usingNethereum.Util;// This is your checksum function, place it anywhere./// <summary>/// Converts an address to checksum format./// </summary>privatestringConvertToChecksum(stringaddress){stringchecksumAddress=newAddressUtil().ConvertToChecksumAddress(address);returnchecksumAddress;}// Call it like this.varchecksumAddress=ConvertToChecksum(YourAddressHere);
The text was updated successfully, but these errors were encountered:
When a dev tries to validate a wallet address they are running into issues because the web3.Signer.GetAddress() function returns an address in all lower case. So when they check if the wallets match, it returns false even though the addresses are the same. The following script resolves the issue and needs to be added to the docs.
The text was updated successfully, but these errors were encountered: