@@ -154,6 +154,12 @@ describe("signer runtime", () => {
154154 const body = JSON . parse ( String ( init ?. body ) ) ;
155155 expect ( body . waitForConfirmation ) . toBe ( false ) ;
156156 expect ( body . transaction . to ) . toBe ( "0x0000000000000000000000000000000000000001" ) ;
157+ expect ( body . transaction . gas ) . toBeUndefined ( ) ;
158+ expect ( body . transaction . nonce ) . toBeUndefined ( ) ;
159+ expect ( body . transaction . maxFeePerGas ) . toBeUndefined ( ) ;
160+ expect ( body . transaction . maxPriorityFeePerGas ) . toBeUndefined ( ) ;
161+ expect ( body . transaction . from ) . toBeUndefined ( ) ;
162+ expect ( body . description ) . toBeUndefined ( ) ;
157163 return {
158164 ok : true ,
159165 text : async ( ) => JSON . stringify ( { transactionHash : "0x" + "e" . repeat ( 64 ) } ) ,
@@ -187,6 +193,13 @@ describe("signer runtime", () => {
187193 const fetchMock = vi . fn ( async ( url : string , init ?: RequestInit ) => {
188194 expect ( url ) . toBe ( "https://api.bankr.bot/agent/submit" ) ;
189195 expect ( ( init ?. headers as Record < string , string > ) [ "x-api-key" ] ) . toBe ( "bankr-token" ) ;
196+ const body = JSON . parse ( String ( init ?. body ) ) ;
197+ expect ( body . transaction . chainId ) . toBe ( base . id ) ;
198+ expect ( body . transaction . gas ) . toBeUndefined ( ) ;
199+ expect ( body . transaction . nonce ) . toBeUndefined ( ) ;
200+ expect ( body . transaction . maxFeePerGas ) . toBeUndefined ( ) ;
201+ expect ( body . transaction . maxPriorityFeePerGas ) . toBeUndefined ( ) ;
202+ expect ( body . transaction . from ) . toBeUndefined ( ) ;
190203 return {
191204 ok : true ,
192205 text : async ( ) => JSON . stringify ( { txHash : "0x" + "f" . repeat ( 64 ) } ) ,
0 commit comments