@@ -13,6 +13,7 @@ import (
1313 proto_wallet "github.com/0xsequence/waas-authenticator/proto/waas"
1414 "github.com/0xsequence/waas-authenticator/rpc/tenant"
1515 "github.com/0xsequence/waas-authenticator/rpc/waasapi"
16+ "github.com/davecgh/go-spew/spew"
1617)
1718
1819func (s * RPC ) sendTransaction (
@@ -27,11 +28,16 @@ func (s *RPC) sendTransaction(
2728
2829 // use original intent otherwise we may experience lose of data because of outdated struct
2930 apiIntent := waasapi .ConvertToAPIIntent (& intent .Intent )
31+
32+ s .Log .Info ().Str ("intent" , spew .Sdump (intent )).Str ("apiIntent" , spew .Sdump (apiIntent )).Msgf ("RPC.sendTransaction" )
33+
3034 bundle , err := s .Wallets .GenTransaction (waasapi .Context (ctx ), apiIntent )
3135 if err != nil {
3236 return nil , fmt .Errorf ("generating transaction: %w" , err )
3337 }
3438
39+ s .Log .Info ().Str ("intent" , spew .Sdump (intent )).Str ("apiIntent" , spew .Sdump (apiIntent )).Str ("bundle" , spew .Sdump (bundle )).Msgf ("RPC.sendTransaction" )
40+
3541 nonce , ok := sequence .ParseHexOrDec (bundle .Nonce )
3642 if ! ok {
3743 return nil , fmt .Errorf ("invalid nonce: %s" , bundle .Nonce )
@@ -102,6 +108,8 @@ func (s *RPC) sendTransaction(
102108 },
103109 }
104110
111+ s .Log .Info ().Str ("apiIntent" , spew .Sdump (apiIntent )).Str ("bundle" , spew .Sdump (bundle )).Msgf ("s.Wallets.SendTransaction" )
112+
105113 res , err := s .Wallets .SendTransaction (waasapi .Context (ctx ), apiIntent , bundle , signatures )
106114 if err != nil {
107115 return nil , fmt .Errorf ("sending transaction: %w" , err )
0 commit comments