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
In BitcoinAddress+Legacy.swift public var legacy: String { switch hashType { case .pubkeyHash: return Base58Check.encode([network.pubkeyhash] + data) case .scriptHash: return Base58Check.encode([network.pubkeyhash] + data) } }
correct way: case .scriptHash: return Base58Check.encode([network.scripthash] + data)
The text was updated successfully, but these errors were encountered:
In BitcoinAddress+Legacy.swift
public var legacy: String {
switch hashType {
case .pubkeyHash:
return Base58Check.encode([network.pubkeyhash] + data)
case .scriptHash:
return Base58Check.encode([network.pubkeyhash] + data)
}
}
correct way:
case .scriptHash:
return Base58Check.encode([network.scripthash] + data)
The text was updated successfully, but these errors were encountered: