Skip to content

Commit 3b9bcb3

Browse files
Update documentation
1 parent 4dc63dc commit 3b9bcb3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This client is modelled after [polkadot-js/api](https://github.com/polkadot-js/a
1111

1212
## State
1313

14-
This package is actively developed. The first stable release is expected in November 2019.
14+
This package is feature complete, but it is relatively new and might still contain bugs. We advice to use it with caution in production. It comes without any warranties, please refer to LICENCE for details.
1515

1616
## Documentation & Usage Examples
1717

types/event_record.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ type EventRecords struct {
293293
}
294294

295295
// DecodeEventRecords decodes the events records from an EventRecordRaw into a target t using the given Metadata m
296+
// If this method returns an error like `unable to decode Phase for event #x: EOF`, it is likely that you have defined
297+
// a custom event record with a wrong type. For example your custom event record has a field with a length prefixed
298+
// type, such as types.Bytes, where your event in reallity contains a fixed width type, such as a types.U32.
296299
func (e EventRecordsRaw) DecodeEventRecords(m *Metadata, t interface{}) error {
297300
log.Debug(fmt.Sprintf("will decode event records from raw hex: %#x", e))
298301

0 commit comments

Comments
 (0)