@@ -1304,14 +1304,29 @@ func TestChainSvrCmds(t *testing.T) {
13041304 return btcjson .NewCmd ("signmessagewithprivkey" , "5Hue" , "Hey" )
13051305 },
13061306 staticCmd : func () interface {} {
1307- return btcjson .NewSignMessageWithPrivKey ("5Hue" , "Hey" )
1307+ return btcjson .NewSignMessageWithPrivKey ("5Hue" , "Hey" , nil )
13081308 },
13091309 marshalled : `{"jsonrpc":"1.0","method":"signmessagewithprivkey","params":["5Hue","Hey"],"id":1}` ,
13101310 unmarshalled : & btcjson.SignMessageWithPrivKeyCmd {
13111311 PrivKey : "5Hue" ,
13121312 Message : "Hey" ,
13131313 },
13141314 },
1315+ {
1316+ name : "signmessagewithprivkey - with address" ,
1317+ newCmd : func () (interface {}, error ) {
1318+ return btcjson .NewCmd ("signmessagewithprivkey" , "5Hue" , "Hey" , "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" )
1319+ },
1320+ staticCmd : func () interface {} {
1321+ return btcjson .NewSignMessageWithPrivKey ("5Hue" , "Hey" , btcjson .String ("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" ))
1322+ },
1323+ marshalled : `{"jsonrpc":"1.0","method":"signmessagewithprivkey","params":["5Hue","Hey","1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"],"id":1}` ,
1324+ unmarshalled : & btcjson.SignMessageWithPrivKeyCmd {
1325+ PrivKey : "5Hue" ,
1326+ Message : "Hey" ,
1327+ Address : btcjson .String ("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" ),
1328+ },
1329+ },
13151330 {
13161331 name : "stop" ,
13171332 newCmd : func () (interface {}, error ) {
0 commit comments