aptos-labs / aptos-go-sdk

Aptos Go SDK
https://aptos.dev/sdks/go-sdk
Apache License 2.0
11 stars 15 forks source link

API Events returns a GUIDId instead of a GUID. #75

Closed jmmcatee closed 2 months ago

jmmcatee commented 3 months ago

https://github.com/aptos-labs/aptos-go-sdk/blob/4cfc2a47fbc76058605267b993c560869ef52c3f/api/events.go#L43

The event unmarshaler code expects the following:

"guid": {
    "id": {
        "account_address": "0x0",
     "creation_number": "0
    }
},

The returned value however is just:

"guid": {
    "account_address": "0x0",
    "creation_number": "0"
},

This causes the returned Event to have a nil GUID field.