Skip to content

Commit

Permalink
Fix typos (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolou86 authored Oct 12, 2023
1 parent fde5520 commit 06c8bcd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public override async Task Prepare(
{
Debug.Log("Attempting to fund Bundlr address.");
var fundsRequired = (ulong)Mathf.CeilToInt(FUND_PADDING * (lamportsFee - balance));
Debug.LogFormat("Additonal funds required: {0}", fundsRequired);
Debug.LogFormat("Additional funds required: {0}", fundsRequired);
var funded = await bundlrClient.FundBundlrAddress(payer, rpcClient, bundlrAddress, fundsRequired);
if (!funded)
{
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Plugins/HideIf/Editor/HideIfAttributeDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class HidingAttributeDrawer : PropertyDrawer {
/// <summary>
/// Checks if a property is set to be hidden by a HideIfAttribute.
///
/// Usefull for other property drawers that should respect the HideIfAttribute
/// Useful for other property drawers that should respect the HideIfAttribute
/// </summary>
public static bool CheckShouldHide(SerializedProperty property) {
try {
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Plugins/NativeWebSocket/NativeWebSocket.jslib
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var LibraryWebSocket = {
instance.ws.onerror = function(ev) {

if (webSocketState.debug)
console.log("[JSLIB WebSocket] Error occured.");
console.log("[JSLIB WebSocket] Error occurred.");

if (webSocketState.onError) {

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Plugins/Web3AuthSDK/Types/SecurePlayerPrefs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public static bool HasKey(string key)
* Writes all modified preferences to disk.
*
* By default Unity writes preferences to disk on Application Quit.
* In case when the game crashes or otherwise prematuraly exits,
* In case when the game crashes or otherwise prematurely exits,
* you might want to write the PlayerPrefs at sensible 'checkpoints'
* in your game. This function will write to disk potentially causing
* a small hiccup, therefore it is not recommended to call during actual gameplay.
Expand Down
2 changes: 1 addition & 1 deletion Samples~/Solana Wallet/Prefabs/ui/token_item.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
pub_txt: {fileID: 6269036518311638642}
ammount_txt: {fileID: 6269036518382588404}
amount_txt: {fileID: 6269036518382588404}
logo: {fileID: 0}
transferButton: {fileID: 4931489023722635100}
--- !u!114 &4931489023722635100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Solana.Unity.SDK.Example
public class TokenItem : MonoBehaviour
{
public TextMeshProUGUI pub_txt;
public TextMeshProUGUI ammount_txt;
public TextMeshProUGUI amount_txt;

public RawImage logo;

Expand Down Expand Up @@ -47,7 +47,7 @@ public async UniTask InitializeData(TokenAccount tokenAccount, SimpleScreen scre
{
await UniTask.SwitchToMainThread();
_nft = nftData;
ammount_txt.text = "";
amount_txt.text = "";
pub_txt.text = nftData.metaplexData?.data?.offchainData?.name;

if (logo != null)
Expand All @@ -57,7 +57,7 @@ public async UniTask InitializeData(TokenAccount tokenAccount, SimpleScreen scre
}
else
{
ammount_txt.text =
amount_txt.text =
tokenAccount.Account.Data.Parsed.Info.TokenAmount.AmountDecimal.ToString(CultureInfo
.CurrentCulture);
pub_txt.text = nftData?.metaplexData?.data?.offchainData?.name ?? tokenAccount.Account.Data.Parsed.Info.Mint;
Expand Down Expand Up @@ -105,7 +105,7 @@ public void TransferAccount()

public void UpdateAmount(string newAmount)
{
MainThreadDispatcher.Instance().Enqueue(() => { ammount_txt.text = newAmount; });
MainThreadDispatcher.Instance().Enqueue(() => { amount_txt.text = newAmount; });
}
}
}

0 comments on commit 06c8bcd

Please sign in to comment.