diff --git a/transaction/broadcaster/arc.go b/transaction/broadcaster/arc.go index fcbdbe8..72876f6 100644 --- a/transaction/broadcaster/arc.go +++ b/transaction/broadcaster/arc.go @@ -3,9 +3,7 @@ package broadcaster import ( "bytes" "context" - "database/sql/driver" "encoding/json" - "errors" "fmt" "io" "log" @@ -60,18 +58,6 @@ type ArcResponse struct { Detail *string `json:"detail,omitempty"` } -func (ts ArcResponse) Value() (driver.Value, error) { - return json.Marshal(ts) -} - -func (f *ArcResponse) Scan(value interface{}) error { - b, ok := value.([]byte) - if !ok { - return errors.New("type assertion to []byte failed") - } - return json.Unmarshal(b, &f) -} - func (a *Arc) Broadcast(t *transaction.Transaction) (*transaction.BroadcastSuccess, *transaction.BroadcastFailure) { var buf *bytes.Buffer for _, input := range t.Inputs {