nervosnetwork / ckb-sdk-go

MIT License
21 stars 23 forks source link

fix: nil type script #218

Closed shaojunda closed 9 months ago

shaojunda commented 10 months ago

As 'cellOutput.type' may be nil, calling 'cellOutput.Type.Equals(xxx)' could potentially result in an 'invalid memory address or nil pointer dereference' error."

quake commented 10 months ago

there is an unit test error, could you help to fix it also?

shaojunda commented 10 months ago

there is an unit test error, could you help to fix it also?

fixed