File tree Expand file tree Collapse file tree
docs/build/guides/transactions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -859,9 +859,10 @@ func main() {
859859
860860 // index = 0-4 in our example
861861 for index , account := range channelAccounts {
862+ simpleAccount := txnbuild .NewSimpleAccount (account .AccountID , account .Sequence )
862863 channelAccountsTracker [index ] = map [string ]interface {}{
863- "account": account ,
864- " keypair" : channelKeypairs [i ],
864+ " account" : & simpleAccount ,
865+ " keypair" : channelKeypairs [index ],
865866 " state" : " available" ,
866867 }
867868 }
@@ -908,7 +909,7 @@ func main() {
908909 tx , err = tx .Sign (
909910 network .TestNetworkPassphrase ,
910911 primaryKeypair ,
911- channelData [" keypair" ].(* keypair .Full )
912+ channelData [" keypair" ].(* keypair .Full ),
912913 )
913914 check(err )
914915
@@ -918,8 +919,9 @@ func main() {
918919 channelData map [string ]interface {}
919920 }{
920921 transaction : tx ,
921- channelData : channelData
922- })
922+ channelData : channelData ,
923+ },
924+ )
923925 } else {
924926 fmt.Println(" No available channel account. Waiting..." )
925927 // Perhaps sleep here
You can’t perform that action at this time.
0 commit comments