Тестовый коммит после удаления husky
This commit is contained in:
23
frontend/src/composables/useEthereum.js
Normal file
23
frontend/src/composables/useEthereum.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ref } from 'vue';
|
||||
|
||||
export function useEthereum() {
|
||||
const address = ref('');
|
||||
const isConnected = ref(true);
|
||||
|
||||
async function connect() {
|
||||
console.log('Имитация подключения к кошельку');
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
async function getContract() {
|
||||
console.log('Имитация получения контракта');
|
||||
return {};
|
||||
}
|
||||
|
||||
return {
|
||||
address,
|
||||
isConnected,
|
||||
connect,
|
||||
getContract,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user