We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 950d364 commit bc8cfa0Copy full SHA for bc8cfa0
src/core/ERC7779Adapter.sol
@@ -43,6 +43,12 @@ abstract contract ERC7779Adapter is IERC7779 {
43
assembly {
44
$.slot := ERC7779_STORAGE_BASE
45
}
46
+ // Check if the storageBase already exists to avoid duplication
47
+ for (uint256 i = 0; i < $.storageBases.length; i++) {
48
+ if ($.storageBases[i] == storageBase) {
49
+ return; // Exit if the storageBase is already present
50
+ }
51
52
$.storageBases.push(storageBase);
53
54
0 commit comments