kopia lustrzana https://github.com/bugout-dev/moonstream
trying to add tags
rodzic
22b8f335d2
commit
80877f8c69
|
@ -7,6 +7,19 @@ const useTxInfo = (transaction) => {
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
const getTxInfo = async () => {
|
const getTxInfo = async () => {
|
||||||
const response = await TxInfoService.getTxInfo(transaction);
|
const response = await TxInfoService.getTxInfo(transaction);
|
||||||
|
// const responce_transaction = response.data;
|
||||||
|
// console.log(responce_transaction)
|
||||||
|
// responce_transaction.tags = [];
|
||||||
|
// responce_transaction.tags.append("hello", "test")
|
||||||
|
// if (responce_transaction.is_smart_contract_deployment) {
|
||||||
|
// responce_transaction.tags.append("smart contract deployment")
|
||||||
|
// }
|
||||||
|
// if (responce_transaction.is_smart_contract_call) {
|
||||||
|
// responce_transaction.tags.append("smart contract call")
|
||||||
|
// }
|
||||||
|
// if (responce_transaction.smart_contract_address) {
|
||||||
|
// responce_transaction.tx.smart_contract_address = responce_transaction.smart_contract_address
|
||||||
|
// }
|
||||||
return response.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
const { data, isLoading, isFetchedAfterMount, refetch, isError, error } =
|
const { data, isLoading, isFetchedAfterMount, refetch, isError, error } =
|
||||||
|
|
Ładowanie…
Reference in New Issue