Skip to content

Commit

Permalink
storage: runtime/events require contract_address with nft_id
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Dec 15, 2023
1 parent 21a4887 commit 468e5ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,9 @@ func (c *StorageClient) RuntimeEvents(ctx context.Context, p apiTypes.GetRuntime
h := ethCommon.HexToHash(*p.EvmLogSignature)
evmLogSignature = &h
}
if p.NftId != nil && p.ContractAddress == nil {
return nil, fmt.Errorf("must specify contract_address with nft_id")
}
var NFTIdB64 *string
if p.NftId != nil {
erc721TransferTokenIdBI := &big.Int{}
Expand Down

0 comments on commit 468e5ed

Please sign in to comment.