When using a CanDestroy tag in a command, Data Values/ Item IDs cannot be used to specify Color of wool, Type of log, type of stone, Etc...
This is a MISSING FEATURE as there is no real reason/excuse that IDs cannot be used. I would classify this as an New Feature, or a task due to the simplicity, alas it is major, due to stopping progress on the ENTIRE R2M PROJECT! There are no known workaround.
If this would be released to 1.13, the project could resume. The following is how it should work
/give @p Minecraft:Gold_Axe {CanDestroy:[log;2]}
Blockhead Dev and R2M studios thank you for your time.
P.S. This project will register more Minecraft users, hopefully exponentially.
Please do not mark unreleased versions as affected.
You don't have access to them yet.