difftreelog
fix nft indexed logs
in: master
1 file changed
pallets/nft/src/lib.rsdiffbeforeafterboth1762 eth::APPROVAL_NFT_TOPIC,1762 eth::APPROVAL_NFT_TOPIC,1763 eth::address_to_topic(sender.as_eth()),1763 eth::address_to_topic(sender.as_eth()),1764 eth::address_to_topic(spender.as_eth()),1764 eth::address_to_topic(spender.as_eth()),1765 eth::u32_to_topic(item_id),1765 ]),1766 ]),1766 abi_encode!(uint256(item_id.into())),1767 abi_encode!(),1767 );1768 );1768 }1769 }176917702118 eth::TRANSFER_NFT_TOPIC,2119 eth::TRANSFER_NFT_TOPIC,2119 eth::address_to_topic(&H160::default()),2120 eth::address_to_topic(&H160::default()),2120 eth::address_to_topic(item_owner.as_eth()),2121 eth::address_to_topic(item_owner.as_eth()),2122 eth::u32_to_topic(current_index),2121 ]),2123 ]),2122 abi_encode!(uint256(current_index.into())),2124 abi_encode!(),2123 );2125 );2124 Self::deposit_event(RawEvent::ItemCreated(collection_id, current_index, item_owner));2126 Self::deposit_event(RawEvent::ItemCreated(collection_id, current_index, item_owner));2125 Ok(())2127 Ok(())2478 eth::TRANSFER_NFT_TOPIC,2480 eth::TRANSFER_NFT_TOPIC,2479 eth::address_to_topic(sender.as_eth()),2481 eth::address_to_topic(sender.as_eth()),2480 eth::address_to_topic(new_owner.as_eth()),2482 eth::address_to_topic(new_owner.as_eth()),2483 eth::u32_to_topic(item_id),2481 ]),2484 ]),2482 abi_encode!(uint256(item_id.into())),2485 abi_encode!(),2483 );2486 );2484 Self::deposit_event(RawEvent::Transfer(collection.id, item_id, sender, new_owner, 1));2487 Self::deposit_event(RawEvent::Transfer(collection.id, item_id, sender, new_owner, 1));24852488