@@ -787,13 +787,13 @@ func (s *transactionServer) GetIntentMetadata(ctx context.Context, req *transact
787787 log .WithError (err ).Warn ("failure getting source account info record" )
788788 return nil , status .Error (codes .Internal , "" )
789789 }
790- coreMintSourceAccountInfoRecord , ok := sourceAccountInfoRecordsByMint [mintAccount .PublicKey ().ToBase58 ()]
790+ sourceAccountInfoRecord , ok := sourceAccountInfoRecordsByMint [mintAccount .PublicKey ().ToBase58 ()]
791791 if ! ok {
792792 log .WithError (err ).Warn ("core mint source account info record doesn't exist" )
793793 return nil , status .Error (codes .Internal , "" )
794794 }
795795
796- sourceAccount , err := common .NewAccountFromPublicKeyString (coreMintSourceAccountInfoRecord .TokenAccount )
796+ sourceAccount , err := common .NewAccountFromPublicKeyString (sourceAccountInfoRecord .TokenAccount )
797797 if err != nil {
798798 log .WithError (err ).Warn ("invalid source account" )
799799 return nil , status .Error (codes .Internal , "" )
@@ -1050,7 +1050,13 @@ func (s *transactionServer) VoidGiftCard(ctx context.Context, req *transactionpb
10501050
10511051 claimedActionRecord , err := s .data .GetGiftCardClaimedAction (ctx , giftCardVault .PublicKey ().ToBase58 ())
10521052 if err == nil {
1053- vmConfig , err := common .GetVmConfigForMint (ctx , s .data , common .CoreMintAccount )
1053+ mintAccount , err := common .NewAccountFromPublicKeyString (accountInfoRecord .MintAccount )
1054+ if err != nil {
1055+ log .WithError (err ).Warn ("invalid mint account" )
1056+ return nil , status .Error (codes .Internal , "" )
1057+ }
1058+
1059+ vmConfig , err := common .GetVmConfigForMint (ctx , s .data , mintAccount )
10541060 if err != nil {
10551061 log .WithError (err ).Warn ("failure getting vm config" )
10561062 return nil , status .Error (codes .Internal , "" )
0 commit comments