Skip to content

Commit bdd3404

Browse files
committed
fix(ocp): add unintentionally deleted serverExchangeData from SendPublicPayment
Needed to facilitate cash links and buys via SendPublicPayment Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent c3fb07a commit bdd3404

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

services/opencode/src/main/kotlin/com/getcode/opencode/internal/network/extensions/LocalToProtobuf.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.codeinc.opencode.gen.messaging.v1.requestToGiveBill
66
import com.codeinc.opencode.gen.messaging.v1.requestToGrabBill
77
import com.codeinc.opencode.gen.transaction.v1.TransactionService
88
import com.codeinc.opencode.gen.transaction.v1.TransactionService.OpenAccountsMetadata.AccountSet
9+
import com.codeinc.opencode.gen.transaction.v1.exchangeData
910
import com.getcode.ed25519.Ed25519.KeyPair
1011
import com.getcode.opencode.internal.solana.model.SwapId
1112
import com.getcode.opencode.model.accounts.AccountType
@@ -150,6 +151,7 @@ internal fun TransactionMetadata.asProtobufMetadata(): TransactionService.Metada
150151
setClientExchangeData(verifiedExchangeData.asProtobufExchangeData())
151152
}
152153
}
154+
.setServerExchangeData(exchangeData.asProtobufExchangeData())
153155
.setDestination(destination.asSolanaAccountId())
154156
.apply {
155157
if (this@asProtobufMetadata.destinationOwner != null) {

services/opencode/src/main/kotlin/com/getcode/opencode/model/financial/MintMetadata.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ data class VmMetadata(
146146
* @property mintVault The address where this mint's tokens are locked against the liquidity pool
147147
* @property coreMintVault The address where core mint tokens are locked against the liquidity pool
148148
* @property currentCirculatingSupplyQuarks The current circulating mint token supply in quarks
149-
* @property sellFeeBps Precent fee for sells in basis points, currently hardcoded to 1%
149+
* @property sellFeeBps Percent fee for sells in basis points, currently hardcoded to 1%
150150
*/
151151
@Parcelize
152152
data class LaunchpadMetadata(

0 commit comments

Comments
 (0)