Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
samliok committed Oct 11, 2024
2 parents 11e3061 + bca7739 commit 6559429
Show file tree
Hide file tree
Showing 11 changed files with 351 additions and 265 deletions.
4 changes: 2 additions & 2 deletions api/jsonrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ func (cli *JSONRPCClient) GenerateTransactionManual(

// Build transaction
actionCodec, authCodec := parser.ActionCodec(), parser.AuthCodec()
tx := chain.NewTx(base, actions)
tx, err := tx.Sign(authFactory, actionCodec, authCodec)
unsignedTx := chain.NewTxData(base, actions)
tx, err := unsignedTx.Sign(authFactory, actionCodec, authCodec)
if err != nil {
return nil, nil, fmt.Errorf("%w: failed to sign transaction", err)
}
Expand Down
2 changes: 1 addition & 1 deletion api/jsonrpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (j *JSONRPCServer) SubmitTx(
if !rtx.Empty() {
return errTransactionExtraBytes
}
if err := tx.Verify(ctx); err != nil {
if err := tx.VerifyAuth(ctx); err != nil {
return err
}
txID := tx.ID()
Expand Down
2 changes: 1 addition & 1 deletion api/ws/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (w *WebSocketServer) MessageCallback() pubsub.Callback {

// Verify tx
if w.vm.GetVerifyAuth() {
if err := tx.Verify(ctx); err != nil {
if err := tx.VerifyAuth(ctx); err != nil {
w.logger.Error("failed to verify sig",
zap.Error(err),
)
Expand Down
Loading

0 comments on commit 6559429

Please sign in to comment.